hi folks,
package pack1;
class clas2{
String s1;
String s2;
void met(String d1, String d2)
{
System.out.println("ADASD");
}
}
public class rajaone
{
public static void main(String[] args)
{
//String s1,s2;
clas2 ref1 = new clas2();
ref1.s2; //error showing here
}
}
i am getting this error for the above code the error is :
---
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Syntax error, insert "AssignmentOperator ArrayInitializer" to complete Expression
at pack1.rajaone.main(rajaone.java:18)
thanks
raja
package pack1;
class clas2{
String s1;
String s2;
void met(String d1, String d2)
{
System.out.println("ADASD");
}
}
public class rajaone
{
public static void main(String[] args)
{
//String s1,s2;
clas2 ref1 = new clas2();
ref1.s2; //error showing here
}
}
i am getting this error for the above code the error is :
---
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Syntax error, insert "AssignmentOperator ArrayInitializer" to complete Expression
at pack1.rajaone.main(rajaone.java:18)
thanks
raja