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[]) { short[] array = new short[] { 1, 2, 3 }; Array.setShort(array, 1, (short) 9); System.out.println(Arrays.toString(array)); }
From source file:Main.java
public static void main(String[] args) { LocalDate[] a = getWeekday(LocalDate.now()); System.out.println(Arrays.toString(a)); }
From source file:Main.java
public static void main(String args[]) { float[] array = new float[] { 1, 2, 3 }; Array.setFloat(array, 1, (float) 1); System.out.println(Arrays.toString(array)); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.wrap(new long[] { 0, 1, 2, 3, 4, 5, 6 }, 0, 3); bb.put(100L);/*from w w w . j a v a 2 s. co m*/ System.out.println(Arrays.toString(bb.array())); }
From source file:Main.java
public static void main(String[] args) { String input = "2x^4 - 45y^4"; input = input.replaceAll("\\D", " "); String[] parts = input.split("\\W+"); System.out.println(Arrays.toString(parts)); }
From source file:Main.java
public static void main(String[] args) { Integer[] numbers = { 1, 2, 3 }; Arrays.sort(numbers, (i1, i2) -> { return (i2 - i1); });//from w w w.j a v a2s . c om System.out.println(Arrays.toString(numbers)); }
From source file:Main.java
public static void main(String args[]) { double[] array = new double[] { 1, 2, 3 }; Array.setDouble(array, 1, (double) 1); System.out.println(Arrays.toString(array)); }
From source file:Main.java
public static void main(String args[]) { long[] array = new long[] { 1L, 2L, 3L }; Array.setLong(array, 1, 9999999999999L); System.out.println(Arrays.toString(array)); }
From source file:Main.java
public static void main(String[] args) { DoubleBuffer bb = DoubleBuffer.wrap(new double[] { 98765, 98765 }, 0, 1); bb.rewind();/*from www .ja v a 2s . c o m*/ System.out.println(Arrays.toString(bb.array())); }
From source file:Main.java
public static void main(String[] argv) throws Exception { byte[] bytes = new byte[10]; ByteBuffer buf = ByteBuffer.wrap(bytes); System.out.println(Arrays.toString(buf.array())); System.out.println(buf.toString()); }