TidBit = boxInfo.replaceAll("","(X,Y)is the point of the upperleft hand corner.") ("The infomation is as follows:"+tidBit+".") String tidBit = boxInfo.replaceAll("","(X,Y)is the point of the upperleft hand corner.") this takes out the class info out of the String Rectangle box = new Rectangle(2, 15, 3, 6) This exercise is from an old book and I have do not know how to create a class. Then after each translation it prints the new coordinates on the screen. In the code below I trying to create a program that uses the Rectangle class to create and move the rectangle so that when you are finish you should have four rectangles two on the top and two on the bottom. jGRASP wedge2: exit code for process is 1. RectangleMover.java:12: error: invalid method declaration return type required JGRASP exec: javac -g RectangleMover.java Hi I'm Bill and I just started again programming I have this program and I'm getting a error on the compiler that reads:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |