fork download
  1. public class MyMatrix
  2. {
  3.  
  4. public static void main(String[] args)
  5. {
  6.  
  7.  
  8. System.out.print(" ");
  9. boolean [][] a;
  10. int N = Integer.parseInt(args[0]);
  11. a = new boolean [N][N];
  12.  
  13. for (int i = 0; i<a.length; i++)
  14. {
  15. for (int j = 0; j<a[0].length; j++)
  16. {
  17. a[i][j] = true;
  18. int sum = (i+j);
  19.  
  20. if (sum%3==0)
  21. {
  22. System.out.print("T ");
  23. }
  24.  
  25. else
  26. {
  27. System.out.print("F ");
  28.  
  29. }
  30. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:30: reached end of file while parsing
         }
          ^
1 error
stdout

Standard output is empty