Results 1 to 9 of 9
- 10-05-2012, 05:37 PM #1
Member
- Join Date
- Oct 2012
- Posts
- 7
- Rep Power
- 0
I keep recieving a token error, How can this be fixed ?
All of the code I have written so far is working, except for this method. I have never heard of a token error before this. The array has to be of that size, is there a better way to set the parameters or solve this error.
Java Code:public static void sortNames(String[][2] firstAndLastNames, boolean sortBasedOnFirstName){ }
Any feedback would be helpful, Thank you in advanced.
- 10-05-2012, 06:37 PM #2
Re: I keep recieving a token error, How can this be fixed ?
Is the error from a Java SE class?recieving a token error
Have you looked in the API doc for a description of the error?
Please copy and paste here the full text of the error message.If you don't understand my response, don't ignore it, ask a question.
- 10-05-2012, 07:11 PM #3
Member
- Join Date
- Oct 2012
- Posts
- 7
- Rep Power
- 0
Re: I keep recieving a token error, How can this be fixed ?
Syntax error on token "2" delete this token.
Is all the error says.
I am checking the API docs right now
- 10-05-2012, 07:22 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
- 10-05-2012, 07:38 PM #5
Re: I keep recieving a token error, How can this be fixed ?
What compiler are you using? I get a different error message with the javac command: error: ']' expected
If you don't understand my response, don't ignore it, ask a question.
- 10-05-2012, 07:42 PM #6
Member
- Join Date
- Oct 2012
- Posts
- 7
- Rep Power
- 0
Re: I keep recieving a token error, How can this be fixed ?
When I use Eclipse it gives me the token error.
When I use Netbeans it gives me the javac command: error: ']' expected.
either one gives me an error that makes no sense to me
- 10-05-2012, 07:54 PM #7
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
Re: I keep recieving a token error, How can this be fixed ?
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 10-05-2012, 08:22 PM #8
Member
- Join Date
- Oct 2012
- Posts
- 7
- Rep Power
- 0
Re: I keep recieving a token error, How can this be fixed ?
So if both are right, how would I set the parameters for the array if not in the method ?
- 10-05-2012, 08:24 PM #9
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Syntax error on token "}", super expected
By amentjacob1 in forum New To JavaReplies: 9Last Post: 07-06-2012, 04:15 AM -
LTPA token failed because the token expired why? in websphere 7.0
By thirish in forum New To JavaReplies: 0Last Post: 12-09-2011, 10:28 PM -
Syntax error on token
By egun in forum New To JavaReplies: 4Last Post: 02-11-2010, 10:57 AM -
Syntax error on token "(", ; expected
By romilc in forum New To JavaReplies: 7Last Post: 10-24-2009, 01:23 AM -
Error FIxed type attribute not equal
By phoenix_yadu in forum Advanced JavaReplies: 2Last Post: 04-23-2009, 04:36 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks