1. incompatible types: OptionalInt cannot be converted to Integer https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html Integer (Java Platform SE 7 ) Returns the value obtained by rotating the two's complement binary representation of the specified int value right by the specified number of bits. (Bits shifted out of the right hand, or low-order, side reenter on the left, or high-orde..