Java Integer Create toIntArray(String str, String delimiter)

Here you can find the source of toIntArray(String str, String delimiter)

Description

to Int Array

License

Apache License

Declaration

public static int[] toIntArray(String str, String delimiter) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int[] toIntArray(String str, String delimiter) {
        String[] strs = str.split(delimiter);
        int[] ints = new int[strs.length];
        for (int i = 0; i < strs.length; i++) {
            ints[i] = Integer.parseInt(strs[i]);
        }//w  w w.j  a  va  2s . co  m
        return ints;
    }
}

Related

  1. toIntArray(Integer[] objArray)
  2. toIntArray(long color)
  3. toIntArray(long[] in)
  4. toIntArray(String intArray)
  5. toIntArray(String src)
  6. toIntArray(String str, String separator)
  7. toIntArray(String value)
  8. toIntArray(String[] anArray)
  9. toIntArray(String[] array)