package chap2OperatorsAndStatements;

public class Operations{

	public static void main(String[] args){
		System.out.println(new Integer(1) == new Integer(1)); // false

		short x = 1, y = 2, z, a;
		z = (short)(x + y); // Cast otherwise does not compile (type promotion from short with a binary operator)
		System.out.println(Integer.MAX_VALUE);

		a = (short)1_921_222;
		System.out.println(a);
	}
}
@@ -408,9 +408,617 @@
 );%0D%0A
-%09%7D
+%0D%0A%09%09char b = 'b';%0D%0A%09%09char c = 'c';%0D%0A%09%09// Not valid with double qutoes%0D%0A%09%09// char d = %22d%22;%0D%0A%0D%0A%09%09// Not valid: a char (same for byte and short) is promoted to int before used with a binary operator%0D%0A%09%09//char result = b + c;%0D%0A%0D%0A%09%09String b_string = %22b%22;%0D%0A%09%0D%0A%09%09// Forbidden%0D%0A%09%09//String c_string = 'c';%0D%0A%09%09//System.out.println(b == b_string);%0D%0A%09%09System.out.println(b_string.equals(b));%0D%0A%0D%0A%09%09boolean bool = true;%0D%0A%09%09%0D%0A%09%09// Forbidden, there is no relation between 0 and false!%0D%0A%09%09//bool = (bool!=true);%0D%0A%0D%0A%09%09// Forbidden!!!%0D%0A%09%09//x = void_method();%0D%0A%09%09//Object an_object = void_method();%0D%0A%0D%0A%09%7D%0D%0A%0D%0A%09void void_method()%7B%7D;
 %0D%0A%7D

boolean equal