Do anyone know the reason for this error?
807600Oct 25 2007 — edited Oct 25 2007this is the code,
public class pack
{
public static void main(String args[])
{
private int a;
a = 1000;
System.out.println("\n pack ");
System.out.println(" a is "+a);
}
}
when i compile javac pack.java......... i am getting this error,
pack.java:6: illegal start of expression
private int a;
^
1 error
i really dont know what's the reason. Can anyone throw light on this?