Java Array Print printFloatArray(float[] arr)

Here you can find the source of printFloatArray(float[] arr)

Description

print Float Array

License

Open Source License

Declaration

public static void printFloatArray(float[] arr) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static void printFloatArray(float[] arr) {
        StringBuilder sb = new StringBuilder("Length: ");
        sb.append(arr.length);/*  w w w.  j  a va 2  s  .co m*/
        sb.append("\n");
        for (int i = 0; i < arr.length; i++) {
            if (i > 0) {
                sb.append(", ");
            }
            sb.append(arr[i]);
        }
        System.out.println(sb.toString());
    }
}

Related

  1. printArrayNoSpaces(int[] nums)
  2. printArrayRec(int[] workArray, int idx)
  3. printArrayToString(Object[] array)
  4. printErrInvocationString(String cls, String[] args)
  5. printfirstBytes(String comment, byte[] input)
  6. printFloatArray(float[] array)
  7. println(int[] array)
  8. println(Object[] objs)
  9. printMap1(String[] s)