Java Integer Create toInteger(String[] s)

Here you can find the source of toInteger(String[] s)

Description

to Integer

License

Open Source License

Declaration

public static Integer toInteger(String[] s) 

Method Source Code

//package com.java2s;

public class Main {
    public static Integer toInteger(String[] s) {
        if (s == null || s.length == 0)
            return null;
        Integer result = null;//from   ww w  .ja v  a 2s  . c  om
        try {
            result = Integer.valueOf(s[0]);
        } catch (NumberFormatException e) {
        }
        return result;
    }
}

Related

  1. toInteger(String value)
  2. toInteger(String value, int _default)
  3. toInteger(String value, int defaultValue)
  4. toInteger(String value, int defaultValue)
  5. toInteger(String value, Integer defValue)
  6. toInteger(String[] source)
  7. toInteger(StringBuilder value)
  8. toIntegerArray(byte[] input, int offset, int len)
  9. toIntegerArray(double[] doubles)