Java Text Parse textToInteger(String text)

Here you can find the source of textToInteger(String text)

Description

text To Integer

License

Open Source License

Declaration

static public Integer textToInteger(String text) 

Method Source Code

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

public class Main {
    static public Integer textToInteger(String text) {
        if (text == null || text.isEmpty())
            return null;
        try {/*w  ww  .j ava 2 s .  co  m*/
            return Integer.valueOf(text);
        } catch (NumberFormatException ex) {
            return null;
        }
    }
}

Related

  1. textToByte(char[] text)
  2. textToBytes(String text)
  3. textToCDATA(String text)
  4. textToInteger(String filename, String text, String name)
  5. textToMMDDYYYY(String pdata)
  6. textToNumericFormat(String src)
  7. textToNumericFormatV4(String host)
  8. textToNumericFormatV4(String ipString)