Java: incompatible types: String cannot be converted to int, and how to fix it
Fix Java's "incompatible types: String cannot be converted to int" (also shown with java.lang.String): nextLine() and Integer.parseInt, the nextInt() trap, and the related int to String, double, char and lossy conversion errors.
