sumedha rao wrote:class Wrapping
{
static Integer y=new Integer(567);
y+= 1;
public static void main(String args[])
{
System.out.println("y= "+y);
}
}
What is wrong in my code??why do i keep getting the error:<identifier>expected
Java requires that statements (that are not declarations) be located in an initializer, constructor, or method.
Henry