Java Array Dimension Get arraysDims(String[] arr)

Here you can find the source of arraysDims(String[] arr)

Description

arrays Dims

License

Open Source License

Declaration

static public int[] arraysDims(String[] arr) 

Method Source Code

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

public class Main {
    static public int[] arraysDims(String[] arr) {
        if (arr.length > 1) {
            int[] idx = new int[arr.length - 1];
            for (int i = 1; i < arr.length; i++) {
                idx[i - 1] = Integer.parseInt(arr[i]);
            }//  w  w w . j a v  a  2  s .c  o m
            return idx;
        }
        return null;
    }
}

Related

  1. arrayDim(Class c)
  2. arrayDimension(String clsName)
  3. arrayDimensions(Class arrayClass)
  4. arrayDimensions(Class c)