Scanner in = new Scanner(System.in); System.out.print("Vvedite chislo a: "); String a = in.nextLine(); System.out.print("Vvedite chislo b: "); String b = in.nextLine(); int inta = Integer.parseInt(a, 2); int intb = Integer.parseInt(b, 2); Vvedite chislo a: 12
Vvedite chislo b: 23
Java.lang.NumberFormatException: For input string: "12" at java.base / java.lang.NumberFormatException.forInputString (NumberFormatException.java:65) at java.base / java.lang.Integer.parseInt (Integer.java:652) at edu.Atom.Main.main (Main.java:22)