// This class shows how to use various aspects of the Integer wrapper class import java.lang.*; class StringToInteger { public static void main(String args[]) { String testString = "876"; int testint; testint = Integer.parseInt(testString); System.out.println( "This message prints out a String" + " " + testString); System.out.println( "This example prints out an int" + " " + testint); } }