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) { // initializing boolean array boolean arr[] = new boolean[] { true, true, true, true, true }; System.out.println(Arrays.toString(arr)); // using fill for placing false from index 1 to 4 Arrays.fill(arr, 1, 4, false); System.out.println(Arrays.toString(arr)); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.wrap(new long[] { 0, 1, 2, 3, 4, 5, 6 }); bb.put(100);/*from ww w. jav a2s . c om*/ System.out.println(Arrays.toString(bb.array())); }
From source file:Main.java
public static void main(String[] args) { IntBuffer bb = IntBuffer.wrap(new int[] { 0, 1, 2, 3, 4, 5, 6 }, 0, 3); bb.put(100);/*from ww w . j av a 2 s . c o m*/ System.out.println(Arrays.toString(bb.array())); }
From source file:Main.java
public static void main(String args[]) { byte[] array = new byte[] { 1, 2, 3 }; Array.setByte(array, 1, (byte) 9); System.out.println(Arrays.toString(array)); }
From source file:Main.java
public static void main(String[] args) { CharBuffer cb1 = CharBuffer.allocate(5); cb1.put(2, 'j'); cb1.rewind();//from w w w. j a v a 2 s. c om System.out.println(Arrays.toString(cb1.array())); }
From source file:Main.java
public static void main(String[] args) { BasicStroke stroke = new BasicStroke(10, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0.1F); System.out.println(Arrays.toString(stroke.getDashArray())); }
From source file:Main.java
public static void main(String args[]) { char[] array = new char[] { 'a', 'a', 'a' }; Array.setChar(array, 1, 'c'); System.out.println(Arrays.toString(array)); }
From source file:Main.java
public static void main(String[] args) { CharBuffer cb1 = CharBuffer.allocate(5); cb1.append('j'); cb1.rewind();/*ww 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.allocate(10); floatBuffer.put(1, 1.23F);/*from w w w .ja v a 2 s. c o m*/ System.out.println(Arrays.toString(floatBuffer.array())); }
From source file:Main.java
public static void main(String[] args) { DoubleBuffer bb = DoubleBuffer.wrap(new double[] { 98765, 98765 }); bb.rewind();/*from w w w . j a v a2 s . co m*/ System.out.println(Arrays.toString(bb.array())); }