Results 1 to 3 of 3
Thread: Illegal start of expression
- 07-30-2007, 02:02 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 41
- Rep Power
- 0
- 07-30-2007, 05:24 PM #2
Senior Member
- Join Date
- Jul 2007
- Posts
- 135
- Rep Power
- 0
You have defined the text() method inside of the main method. I would also recommend using a consistent style. Your errors will be easier to see if you do.
For example here is your code but formated differently
Now it is easier to see that text() is inside main.Java Code:public class HelloWorld { public static void main(String[] args) { public void text() { sh.text("hello"); } } }
- 08-01-2007, 05:09 PM #3
Member
- Join Date
- Jul 2007
- Posts
- 41
- Rep Power
- 0
Similar Threads
-
illegal character: \65279
By iwax in forum New To JavaReplies: 3Last Post: 01-30-2008, 02:52 PM -
Illegal Start of an Expression
By David55 in forum CLDC and MIDPReplies: 8Last Post: 11-02-2007, 09:11 PM -
illegal start of expression & class, interface, or enum expected
By silverq_82 in forum New To JavaReplies: 9Last Post: 08-08-2007, 07:16 PM -
Boolean Expression
By ritwik07 in forum New To JavaReplies: 3Last Post: 07-11-2007, 04:11 AM -
Illegal Start of an Expression
By David55 in forum CLDC and MIDPReplies: 0Last Post: 04-20-2007, 05:59 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks