convert string to int processing code example Example: processing string to int String s = "1"; int i = Integer.parseInt(s);