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);
and it compiles errors like these
Compiling 1 source file to /home/skull/NetBeansProjects/CreatObjectDemo/build/classes
/home/skull/NetBeansProjects/CreatObjectDemo/src/creatobjectdemo/CreatObjectDemo.java:19: cannot find symbol
symbol : class Point
location: class creatobjectdemo.CreatObjectDemo
Point originOne = new Point(23, 94);
/home/skull/NetBeansProjects/CreatObjectDemo/src/creatobjectdemo/CreatObjectDemo.java:19: cannot find symbol
symbol : class Point
location: class creatobjectdemo.CreatObjectDemo
Point originOne = new Point(23, 94);
/home/skull/NetBeansProjects/CreatObjectDemo/src/creatobjectdemo/CreatObjectDemo.java:20: cannot find symbol
symbol : class Rectangle
It is using the JDK 1.6 library, am currently having issues getting it to add platform 1.7 would the library be the cause of this issue?
Any thanks will be greatly appreciated
*edit* there are indents in the code, copy and paste is right on preview, shows no indents on submittal? *meh*