Java Short Number Create toShort(String[] arr)

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

Description

to Short

License

Open Source License

Declaration

public static short[] toShort(String[] arr) 

Method Source Code

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

public class Main {
    public static short[] toShort(String[] arr) {
        short[] s = new short[arr.length];
        for (int i = 0; i < arr.length; ++i)
            s[i] = Short.parseShort(arr[i]);
        return s;
    }/*ww w . j av  a2 s .  c  om*/
}

Related

  1. toShort(String str, short defaultValue)
  2. toShort(String value)
  3. toShort(String value)
  4. toShort(String value)
  5. toShort(String value, short defaultValue)