error in creating triangle object
I am getting an error message of " cannot resolve symbol"..when i tried to create an object for the triangle class.It points at the 'Triangle' class itself when the program is compiled.I just hope that I have imported the right package.Can somebody help me with that.
C:\jdk1.3.1_15\bin>javac test.javatest.java:43: cannot resolve symbolsymbol : class Trianglelocation: class Test{ Triangle Tri = new Triangle(P, V, T);^here it is...the pointer is on T here of the Triangle class.
OK, Triangle isn't a standard class.
Is it something you wrote, or is it something that was provided to you?
If it's something you wrote, you'll either need to compile it first, or compile it at the same time as what you're compiling now. If you already have compiled it, you may need to specify the classpath to include it.
If it was provided to you, you'll need to check the docs to see what its full package name is, and to include it in the classpath. Did it come as a class file or in a jar file?