Run ❯
Get your
own Java
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
public class Main { public static void main(String[] args) { String text = "Hello"; try { System.out.println(text.charAt(10)); } catch (StringIndexOutOfBoundsException e) { System.out.println("The index does not exist in the string."); } } }
The index does not exist in the string.