Java Arrays.toString(short[] a)
Syntax
Arrays.toString(short[] a) has the following syntax.
public static String toString(short[] a)
Example
In the following code shows how to use Arrays.toString(short[] a) method.
// w w w . jav a 2s .com
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
short[] s1 = new short[] { 20, 70 };
System.out.println(Arrays.toString(s1));
}
}
The code above generates the following result.
Home »
Java Tutorial »
java.util »
Java Tutorial »
java.util »