Results 1 to 2 of 2
- 09-08-2011, 08:45 PM #1
Member
- Join Date
- Sep 2011
- Posts
- 9
- Rep Power
- 0
reached end of file while parsing- using bluej
Im completely new to programming and am trying to figure out where I went wrong on this project. the project is to write the code to draw this. I did it with the visual bench mark but cannot figure it out

Java Code:public class Picture { private Square square1; private Square square2; private Circle circle1; private Circle circle2; private Circle circle3; private Circle circle4; private Triangle triangle1; private Triangle triangle2; } public class Square { private int size; private int xPosition; private int yPosition; private String color; private boolean isVisible; /** * create a new square with arbitrary field values. */ public class Square { { size= theSize; xPosition= xPosition; yPosition= yPosition; color= theColor; if (theVisibility) makeVisible(); else makeInvisible(); } public int square1() { theSize(200); xPosition(50); yPosition(55); Color("black"); isVisible(true); } private square square2() { theSize(180); xPosition(60); yPosition(65); Color("white"); isVisible(true); } public class triangle { private int size; private int xPosition; private int yPosition; private String color; private boolean isVisible; } public int Triangle(); { int height = height; int width = width; int xPosition = xPosition; int yPosition = yPosition; string color = color; int isVisible =(true); } Triangle triangle1; { height(110); width(80); xPosition(145); yPosition(90); color("black"); isVisible(true); draw(); } Triangle triangle2; { height(100); width(70); xPosition(145); yPosition(96); color("white"); isVisible(true); } public int Circle() { int diameter; int xPosition; int yPosition; String color; boolean isVisible; } private circle circle1; { diameter(150); xPosition(70); yPosition(80); color("black"); boolean isVisible; } private circle circle2; { diameter(140); xPosition(75); yPosition(85); color("white"); boolean isVisible; }private circle circle3; { diameter(40); xPosition(125); yPosition(150); color("black"); boolean isVisible; } private circle circle4; { diameter(30); xPosition(130); yPosition(155); color("white"); boolean isVisible; }Last edited by Norm; 09-08-2011 at 09:14 PM. Reason: added code tags
- 09-08-2011, 09:00 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,407
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Why isnt my JAR file not working outside of the main folder with bluej classes?
By rajkobie in forum New To JavaReplies: 59Last Post: 05-22-2011, 08:37 AM -
How do I make an exe file from BlueJ?
By rajkobie in forum New To JavaReplies: 4Last Post: 05-20-2011, 03:28 PM -
E:\IT 215 Java Programming\Inventory.java:211: reached end of file while parsing
By tlouvierre in forum New To JavaReplies: 1Last Post: 05-31-2009, 06:48 PM -
intimating file(s) have reached/copied in directory
By ashu261 in forum Threads and SynchronizationReplies: 1Last Post: 04-23-2008, 06:24 PM -
signaling file(s) have reached in directory
By ashu261 in forum Advanced JavaReplies: 0Last Post: 02-04-2008, 07:45 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks