java how to make a string an int code example Example: string a int java String number = "1" int num = Integer.parseInt (name); //num equals 1