0
int [][] arr1 = {   
   {1,2,3},
   {4,5},
   {6,7,8,9}
};
System.out.println(arr1);
String a = "Roshan";
int b = 47;
int newarr[] = {1 ,5,8};
System.out.println(a + b + newarr);

Output:

[I@4617c264
Roshan47[I@36baf30c
maloomeister
  • 2,341
  • 1
  • 10
  • 20
  • 3
    Does this answer your question? [What's the simplest way to print a Java array?](https://stackoverflow.com/questions/409784/whats-the-simplest-way-to-print-a-java-array) – maloomeister Sep 16 '21 at 08:14

0 Answers0