Skip to Main Content

Java APIs

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!

help this pliz!

843810Aug 14 2006 — edited Sep 1 2006
I am running this code, I gat about 8 errors,
public class IdentifyMyParts {
public static int x = 7;
public int y = 3;
IdentifyMyParts a = new IdentifyMyParts();
IdentifyMyParts b = new IdentifyMyParts();
a.y = 5;
b.y = 6;
IdentifyMyParts.x = 1;
b.x = 2;
System.out.println("a.y = " + a.y);
System.out.println("b.y = " + b.y);
System.out.println("a.x = " + a.x);
System.out.println("b.x = " + b.x);

}

This is the errors am getting could anyone help me to sort out this, Thx in advance
ntifyMyParts.java:7: <identifier> expected
= 5;
^
ntifyMyParts.java:8: <identifier> expected
= 6;
^
ntifyMyParts.java:9: <identifier> expected
ntifyMyParts.x = 1;
^
ntifyMyParts.java:10: <identifier> expected
= 2;
^
ntifyMyParts.java:11: <identifier> expected
tem.out.println("a.y = " + a.y);
^
ntifyMyParts.java:12: <identifier> expected
tem.out.println("b.y = " + b.y);
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2006
Added on Aug 14 2006
4 comments
115 views