Skip to content

Instantly share code, notes, and snippets.

@jainmickey
Created September 11, 2012 17:46
Show Gist options
  • Save jainmickey/3700218 to your computer and use it in GitHub Desktop.
Save jainmickey/3700218 to your computer and use it in GitHub Desktop.
Use of Operator-Equals
class OpEquals{
public static void main(String args[]){
int a=1, b=2, c=3;
a += 5;
b *= 4;
c += a*b;
c %= 6;
System.out.println("a = "+a);
System.out.println("b = "+b);
System.out.println("c = "+c);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment