Java Array Print printArrayFrom(int[] array, int start)

Here you can find the source of printArrayFrom(int[] array, int start)

Description

print Array From

License

Open Source License

Declaration

public static void printArrayFrom(int[] array, int start) 

Method Source Code

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

public class Main {
    public static void printArrayFrom(int[] array, int start) {
        if (start >= array.length) {
            System.out.println("[]");
            return;
        }//from   w w w  .  ja v  a 2 s.c  om
        System.out.print("[");
        for (int i = start; i < array.length; i++) {
            System.out.print(array[i]);
            if (i != array.length - 1) {
                System.out.print(", ");
            } else {
                System.out.println("]");
            }
        }
    }
}

Related

  1. printArray(String[] s)
  2. printArray(T[] arr)
  3. printArray(T[] array)
  4. printArray(T[] array)
  5. printArrayElements(T[] array)
  6. printArrayInfo(int[] array)
  7. printArrayNoSpaces(int[] nums)
  8. printArrayRec(int[] workArray, int idx)
  9. printArrayToString(Object[] array)