Java List to Short Number Array toShortArray(List values)

Here you can find the source of toShortArray(List values)

Description

to Short Array

License

Open Source License

Declaration

private static short[] toShortArray(List<String> values) 

Method Source Code

//package com.java2s;

import java.util.List;

public class Main {
    private static short[] toShortArray(List<String> values) {
        short[] ss = new short[values.size()];
        for (int i = 0; i < ss.length; i++) {
            ss[i] = Short.parseShort(values.get(i));
        }/*from w w  w .j a v a2 s.c om*/
        return ss;
    }
}

Related

  1. toShortArray(List list)
  2. toShortArray(List list)