Printing Different Lines In Array Java

[Solved] Printing Different Lines In Array Java | Perl - Code Explorer | yomemimo.com
Question : how to print array in one line in java

Answered by : sahil-bhatt

import java.util.*;
public class Main
{ public static void main(String[] args) { int[][] array = {{1, 2, 3, 4}, {5, 6, 7, 8}}; System.out.println(Arrays.deepToString(array)); }
}

Source : https://stackoverflow.com/questions/12760765/print-multi-dimensional-array-using-foreach | Last Update : Tue, 28 Jun 22

Question : printing different lines in array java

Answered by : good-grouse-5bsxu0hk0y4j

1,2,3,4,5
6,7,8,9,10
11,12,13,14,15
16,17,18,19,20
21,22,23,24,25

Source : https://stackoverflow.com/questions/22179557/printing-an-array-in-multiple-lines | Last Update : Wed, 02 Feb 22

Answers related to printing different lines in array java

Code Explorer Popular Question For Perl