printings tag

1 questions


1 answers
114 views
0
Please tell me the simplest way to print out an array.

You are trying to output the array without overriding the toString(). A strange value was printed. int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray); //'[I@3343c8b3' <- This ...

2 years ago

© 2024 OneMinuteCode. All rights reserved.