Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Syntax error on tokens, delete these tokens

807599Apr 29 2007 — edited Apr 30 2007
When i try to compile the following code in Eclipse i get this error

ERROR
Syntax error on tokens, delete these tokens
CODE
public class HellWorld2 {
public static void main(String[] args)
{
	String var1 = "soccer";
	String var2 = "baller";
	
	if (var2.equals(var1))
	{
		System.out.println(var1 + " " + var2);
	}
	System.out.println("the strings are no identicle!)");
}
}
anyideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2007
Added on Apr 29 2007
9 comments
1,028 views