Computer Science, asked by taibachowdhury2429, 9 months ago

How to write a Java statement to create dimensional array for 12 different alphabets in 3 into 4 matrix?

Answers

Answered by itzBrainlyBoy
1

Answer:

You can define a 2D array in Java as follows : int[][] multiples = new int[4][2]; // 2D integer array with 4 rows and 2 columns String[][] cities = new String[3][3]; // 2D String array with 3 rows and 3 columns. int[][] wrong = new int[][]; // not OK, you must specify 1st dimension int[][] right = new int[2][]; // OK......

Answered by Anonymous
8

You can define a 2D array in Java as follows : int[][] multiples = new int[4][2]; // 2D integer array with 4 rows and 2 columns String[][] cities = new String[3][3]; // 2D String array with 3 rows and 3 columns. int[][] wrong = new int[][]; // not OK, you must specify 1st dimension int[][] right = new int[2][]; // OK...

I hope this will help

Similar questions