Problem: when printing a sorted array with data type "int" it is returning funny character "[I@edf4efb". It looks like the address of the array
Question: how to print a sorted array?
Code listed below:
import java.util.Arrays;
public static void main(String[] args) {
int [] sa = {8,200,10};
Arrays.sort(sa);
Arrays.sort(sa);
System.out.println(sa);
}
Actual result: [I@edf4efb
Expected result: 8, 10, 200