Hey all, looking for some help:D I decided to teach myself how to program. I am running Ubuntu 12.04 on a dual core laptop, 3GB Ram. I went with Python for a couple of days, and after some more reading, decided to swap over to Java, since when I finally get around to making a game, I would want it cross platform easily? Anyway, so I have been working throught the Java tutorial trail, using NetBeans IDE, and honestly, some of the stuff just doesnt work. Is this typical with Java? I type the code out line for line on the CreatObjectsDemo,
You apparently didn't type it out line for line. The full source includes Point and Rectangle classes. The errors you get about not finding Point and Rectangle mean you have not implemented them in your code.
*edit* there are indents in the code, copy and paste is right on preview, shows no indents on submittal? *meh*
Wrap your code in code blocks... [ code ] [ /code ], but without the spaces.
public static void main(String[] args) {
// Declare and create a point object
// and two rectangle objects.
Point originOne = new Point(23, 94);
Rectangle rectOne = new
Rectangle(originOne, 100, 200);
Rectangle rectTwo =
new Rectangle(50, 100);