반응형 2차원배열2 2차원 배열 숫자 순차적으로 값 채우기 import java.io.*; import java.util.*; public class Main { public static int[][] arr = new int[3][3]; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int i = Integer.parseint(st.nextToken()); for(int y=0;y 2023. 2. 1. 2차원 배열 char 입출력 import java.io.*; import java.util.*; public class Main { public static char[][] arr = new char[4][4]; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); char c = st.nextToken().charAt(0); for(int y=0;y 2023. 2. 1. 이전 1 다음 반응형