diff --git a/error_templates/java/test_files/string_index_out_of_bounds_error/test.txt b/error_templates/java/test_files/string_index_out_of_bounds_error/test.txt index 5eb2573..93bc233 100644 --- a/error_templates/java/test_files/string_index_out_of_bounds_error/test.txt +++ b/error_templates/java/test_files/string_index_out_of_bounds_error/test.txt @@ -26,7 +26,7 @@ Check that the index used for accessing the character is within the valid range + if (20 < text.length()) { + char character = text.charAt(20); + } else { -+ System.out.println("Index out of range.") ++ System.out.println("Index out of range."); + } + System.out.println(character);