#Error

1 messages · Page 1 of 1 (latest)

undone wren
#

I keep getting the error thing below and I can't figure out why?

./Main.java:79: error: illegal start of expression
public static String formatCard(String surname, String givenName, String category, String cardNum, String birthCountry, String termsAndConditions, char sex, String uscisNum, String dateOfBirth, String validDate, String expireDate){
^
1 error
exit status 1

ancient rockBOT
#

<@&987246399047479336> please have a look, thanks.

ancient rockBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

waxen wind
#

Code please

undone wren
waxen wind
#

And before that?

undone wren
#

I know there will be other errors with missing variables but I don't understand the error

waxen wind
#

That's not right before your method

undone wren
#

Sorry was trying to get it all

silent plaza
#

your public static void main method is missing a closing bracket }

#

currently your formatCard method is inside the main method

undone wren
#

That makes a lot of sense

#

Thank you

limpid kayak
#

also try to use an actual IDE, that will show those kinds of problems

calm jewel
#

(P.S: Intellij, and optionally ultimate which is paid, is the best IDE for JVM)

#

intellij is good for java and kotlin and it's one of the best java ides out there

undone wren
#

Appreciated thanks guys