public class Test { private static int foo; private static int bar; public static void main(String [] args) { foo = 0x42; bar = 2 * foo; } }