class to demostrate the shorthand notation
public class shorthand
{
public void work()
{
int a=10;
float b=20;
a+=10;
b-=10;
System.out.println(“a is “+a);
System.out.println(“b is “+b);
a*=2;
b/=2;
System.out.println(“Now a is “+a);
System.out.println(“Now b is “+b);
a%=10;
b%=10;
System.out.println(“Now a is “+(++a));
System.out.println(“Now b is “+(++b));
}
}