+ 3
Output of array null?
why show the consule one array some thing strenge when dont clearify the index
6 ответов
+ 3
int[] array = {3,4,1};
System.out.print(array);
//output ????
+ 3
do you have any resaon
+ 2
tanx
+ 1
Can you show use the code ?
Can you explain your question more ?
+ 1
Yes. Just being busy. Will answer later. What language do you use?
+ 1
Notice an array is a collection of elements.
You can't say System.out.print(array);
because array is an object
You have to use the toString to export the elements of the array to a string or loop through all elements with a for-loop
https://www.wikihow.com/Print-an-Array-in-Java
https://code.sololearn.com/ct8c8zi0hkNN