Exercise 2D Arrays
Exercise 2D Arrays
Exercise 2D Arrays
import java.io.*;
Printing 2D arrays
int[][] arr = { { 1, 2 }, { 3, 4 } };
}
}
import java.io.*;
public class {
public static void main(String[] args)
{
int[][] arr = { { 1, 2 }, { 3, 4 } };
import java.util.Scanner;
/**
*
* @author user
*/
public class ArrayInputExample2 {
public static void main(String args[])
{
int m, n, i, j;
import java.util.Scanner;
public class PassTwoDimensionalArray {
public static void main(String[] args) {
int[][] m = getArray(); // Get an array
return m;
}
return total;
}
}