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.