Java Parse Int parseInt(String stringValue)

Here you can find the source of parseInt(String stringValue)

Description

parse Int

License

Apache License

Declaration

public static int parseInt(String stringValue) throws ParseException 

Method Source Code


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

import java.text.NumberFormat;
import java.text.ParseException;

public class Main {
    public static int parseInt(String stringValue) throws ParseException {
        return parseNumber(stringValue).intValue();
    }//from   w  w w  .j a va  2  s.  co m

    public static Number parseNumber(String stringValue) throws ParseException {
        NumberFormat numberFormat = NumberFormat.getInstance();
        return numberFormat.parse(stringValue);
    }
}

Related

  1. parseInt(char[] input, ParsePosition offset, int length)
  2. parseInt(char[] strs, int beginindex, int endindex)
  3. parseInt(String src, Locale loc)
  4. parseInt(String value)
  5. parseInteger(PushbackReader reader)
  6. parseInteger(String text)