Array and string - Introduction to 2D Array from Java to Go
Code Java // "static void main" must be defined in a public class. public class Main { private static void printArray(int[][] a) { for (int i = 0; i < a.length; ++i) { System.out.println(a[i]); } for (int i = 0; i < a.length; ++i) { for (int j = 0; a[i] != null && j < a[i].length; ++j) { System.out.print(a[i][j] + " "); } System.out.println(); } } public static void main(String[] args) { System...
Go/Leet Code
2022. 3. 27. 04:37