Online Java Compiler By
JavaTpoint.com
public class IntegerParseIntExample5 { public static void main(String[] args) { String number = "10A"; int result = Integer.parseInt(number); System.out.println(result); } }
Output