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) { IntBuffer bb = IntBuffer.allocate(10); bb.put(100);//from www. j av a2s. co m bb.rewind(); int[] intArray = new int[10]; bb.get(intArray); System.out.println(Arrays.toString(intArray)); }
From source file:Main.java
public static void main(String[] args) throws IOException { CharBuffer cb1 = CharBuffer.allocate(20); cb1.append("java2s.com"); cb1.rewind();// www .j av a2 s . co m System.out.println(Arrays.toString(cb1.array())); CharBuffer cb2 = CharBuffer.allocate(50); cb2.read(cb1); System.out.println(cb2); }
From source file:Main.java
public static void main(String[] args) { Color myColor = new Color(ColorSpace.getInstance(ColorSpace.CS_CIEXYZ), new float[] { 0.1F, 0.2F, 0.3F }, 0.4F);/*from w w w . ja v a 2s .c om*/ System.out.println(Arrays.toString(myColor.getColorComponents(null))); }
From source file:Main.java
public static void main(String[] args) { IntBuffer bb = IntBuffer.allocate(10); bb.put(100);/*ww w .jav a 2 s. c o m*/ bb.rewind(); int[] intArray = new int[10]; bb.get(intArray, 0, 2); System.out.println(Arrays.toString(intArray)); }
From source file:Main.java
public static void main(String[] args) { CharBuffer cb1 = CharBuffer.allocate(5); cb1.put(2, 'j'); cb1.rewind();//from www. j a v a 2 s . co m char[] charArray = new char[5]; cb1.get(charArray); System.out.println(Arrays.toString(charArray)); }
From source file:Main.java
public static void main(String[] args) { String[] teams = new String[5]; teams[0] = "M"; teams[1] = "c"; teams[2] = "A"; teams[3] = "l"; teams[4] = "E"; Arrays.sort(teams);/*from w w w . j a v a 2 s. com*/ System.out.println(Arrays.toString(teams)); Arrays.sort(teams, String.CASE_INSENSITIVE_ORDER); System.out.println(Arrays.toString(teams)); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(100);/* w w w.j a va2s. c o m*/ bb.rewind(); long[] longArray = new long[10]; bb.get(longArray); System.out.println(Arrays.toString(longArray)); }
From source file:Main.java
public static void main(String args[]) { String testStr = "This is a test."; System.out.println("Original string: " + testStr); String result[] = testStr.split("\\s+"); System.out.print("Split at spaces: "); System.out.println(Arrays.toString(result)); }
From source file:Main.java
public static void main(String[] args) { DoubleBuffer bb = DoubleBuffer.allocate(BSIZE); bb.put(98765);//from ww w. j a va 2 s .c o m DoubleBuffer bb1 = bb.slice(); System.out.println(Arrays.toString(bb1.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 ww . j av a2s.c o m*/ char[] charArray = new char[5]; cb1.get(charArray, 0, 2); System.out.println(Arrays.toString(charArray)); }