A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
illegal start of expression??
Joined: Mar 16, 2006
Mar 16, 2006 09:06:00
When attempting to compile the following code, i recieved the message, 'illegal start of expression', with the line in bold, highlighted. Any ideas what that would mean???
private void go()
= "Mary had a little lamb";
token = new StringTokeizer(test); token.hasMoreTokens()
String word = token.nextToken();
System.out.println("Word = " + word);
author and iconoclast
Joined: Jul 08, 2003
Mar 16, 2006 09:08:00
Welcome to JavaRanch!
It generally means that there's a real error on a line before this. The most likely problem is a missing close-brace, so that this method declaration seems to appear inside the preceding method.
[Jess in Action]
I agree. Here's the link:
subject: illegal start of expression??
HELP?! set up an iterator & put entries Collection into display List
may you guess where error I get: script: stop/start animation image
method inside main method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014