Fehler "StringIndexoutOfboundSexception" Fehler
Posted: 02 Apr 2025, 04:12
Code: Select all
Code:
char a=sc.next().charAt(0);
char b=sc.nextLine().charAt(0);
System.out.println(a);
System.out.println(b);
Input: "abc"
Output: StringIndexOutOfBoundsException