Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
450 B
0
Indexable
Never
import java.util.Scanner;

public class Main
{
	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);
		String input = scanner.nextLine();
		int counter = 0;
		char[][] symbolsArray = new char[3][3];
		for (int i = 0; i < 3; i++) {
		    for (int j = 0; j < 3; j++) {
		        symbolsArray[i][j] = input.charAt(counter);
		        counter++;
		    }
		}
		
		System.out.println(Arrays.toString(symbolsArray));
	}
}