swea 1213 [D3] [S/W 문제해결 기본] 3일차 - String JAVA 풀이 : str.substring, str.equals() 사용 for문 범위 지정 잘해야함. -> 마지막 부분에서 배열을 벗어날 수도 있음(stack overflow) Code public class Solution1213 { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); for (int tc = 1; tc SWEA 2023.11.22