I am going through the book "Learn Java for Android Development" 3rd edition by Jeff Friesen. One early example is giving me an error on lines 11 and 12 ( "A" +" "B") and ("A" + 5) lines. Copied exactly from the book, but got the error "the left hand side of an assignment must be a variable" in Eclipse. Can you help me figure out what is wrong with my code?
public static void main (String[] args)
{
int age = 65;
System.out.println(age + 32);
System.out.println(++age);
System.out.println(age--);
System.out.println( "A" = "B" );
System.out.println( "A" = 5);
short x = 32767;
System.out.println(++x);
}
}