how to get out of index out of bounds error code example Example: array out of bounds error java x = 5; System.out.println(x);