Afreen Patel wrote:package certificate;
public class Exam
{
public static int mark;
static public void print()
{
System.out.println("Print" + 100);
}
}
I compiled this code successfully but after referring this code to other package getting error that package does not exist.Please help me what to do??
here is code in which import statement does not supporting
package university;
import static certificate.Exam.mark;
public class AnnualExam
{
AnnualExam()
{
mark=100;
System.out.println(100);
}
}
I am working on Java SE 7.
Thank You in advance![]()
OCAJP 7, OCPJP 7
Afreen Patel wrote:present in same project.
OCAJP 7, OCPJP 7
Author of ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- OCPJP Online Training -- Twitter -- How to Ask a Question
Himai Minh wrote:...java -cp ...
Author of ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- OCPJP Online Training -- Twitter -- How to Ask a Question
I compiled this code successfully but after referring this code to other package getting error that package does not exist.Please help me what to do??
here is code in which import statement does not supporting
Afreen Patel wrote:Please guys tell me where I am going wrong? please!!!
OCAJP 7, OCPJP 7
Afreen Patel wrote:And class path is set through environment variable.
Afreen Patel wrote:CLASSPATH
"c:\Program Files (x86)\Java\jdk1.7.0_25\bin;"
Don't get me started about those stupid light bulbs. |