index는 0부터 substring 인자 1개 -> 해당 index 포함하여 마지막까지. 길이가 10일 때 length를 넣으면 10번째는 없지만 에러는 나지 않고 빈값 substring 인자 2개 -> 첫 번째 인자 포함하고 두 번째 인자 전까지 substring 사용 시 두 번째 인자에 length를 사용해도 두 번째 인자에서 -1이기 때문에 문제가 없다. indexOf, lastIndexOf는 해당 index 위치를 그대로 가져온다 String word = "0123456789"; //length 10 System.out.println(word.substring(0)); //0123456789 System.out.println(word.substring(1)); //123456789 System...