System.out.print("Press 0 to convert Char to Int or Press 1 to convert Int to Char - "); ...
The Integer.parseInt() method in Java is used to convert a String into an int (primitive data type). It is part of the Integer class in the java.lang package.