What does this meaaaaan? I'm so lost on this one.
package en.codegym.task.jdk13.task06.task0634;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;
/*
Chess board
*/
public class Solution {
public static char[][] array;
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner (System.in);
int x = sc.nextInt();
array = new char[x][x];
boolean isEven = x % 2 == 0;
boolean isWhite = false;
for (int i = 0; i < x; i++) {
for (int j = 0; j < x; j++) {
System.out.print(isWhite ? " " : "#");
isWhite = !isWhite;
}
if (isEven)
isWhite = !isWhite;
System.out.println();
}
}
}