List of usage examples for java.util Arrays toString
public static String toString(Object[] a)
From source file:Main.java
public static void main(String[] args) { Integer[] numbers = { 1, 2, 3, 4 }; Stream<Integer> arrayStreams1 = Stream.of(numbers); System.out.println(Arrays.toString(arrayStreams1.toArray())); }
From source file:Main.java
public static void main(String[] args) { ShortBuffer bb = ShortBuffer.wrap(new short[] { 0, 1, 2, 3, 4, 5, 6 }); bb.put((short) 100); System.out.println(Arrays.toString(bb.array())); }
From source file:Main.java
public static void main(String[] args) { CharBuffer cb1 = CharBuffer.allocate(50); cb1.append("java2s.com"); cb1.rewind();/*from w w w .jav a 2 s.c o m*/ System.out.println(Arrays.toString(cb1.array())); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.wrap(new float[] { 1.23F }); floatBuffer.rewind();/*from w w w .ja v a 2s . co m*/ System.out.println(Arrays.toString(floatBuffer.array())); }
From source file:Main.java
public static void main(String[] args) { ShortBuffer bb = ShortBuffer.wrap(new short[] { 0, 1, 2, 3, 4, 5, 6 }); bb.put(0, (short) 100); System.out.println(Arrays.toString(bb.array())); }
From source file:Main.java
public static void main(String[] args) { Integer[] numbers = { 1, 2, 3, 4 }; Stream<Integer> arrayStreams2 = Arrays.stream(numbers); System.out.println(Arrays.toString(arrayStreams2.toArray())); }
From source file:Main.java
public static void main(String[] args) { LocalDate[] a = nextWeekDay(LocalDate.now()); System.out.println(Arrays.toString(a)); }
From source file:Main.java
public static void main(String[] args) { Integer num = 12345;/*from w w w . jav a 2s . c o m*/ Integer[] digits = getDigits(num.toString()); System.out.println(Arrays.toString(digits)); }
From source file:Main.java
public static void main(String[] argv) throws Exception { byte[] bytes = new byte[10]; ByteBuffer buf = ByteBuffer.wrap(bytes, 0, 4); System.out.println(Arrays.toString(buf.array())); System.out.println(buf.toString()); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(new float[] { 1.23F }); System.out.println(Arrays.toString(floatBuffer.array())); }