What is the most elegant way to do the next stuff:
int i = oneOrZero; if (i == 0) { i = 1; } else { i = 0; }
You can assume that
int x = 0; x=(int)Math.cos(x); System.out.println("X value "+x);