Here you can find the source of toShort(String[] arr)
public static short[] toShort(String[] arr)
//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*/ }