Code example for NumberFormat

Methods: parse

	public static Number parseNumber(final String number,
		final NumberFormat format)
		try { 
			return format.parse(number);
		catch (final ParseException exc) {
			final NumberFormatException nfe = new NumberFormatException();
			throw nfe;
	 * Parses a {@link Number} from the given string, respecting the default 
	 * {@link Locale}. 
	 * @throws NumberFormatException if the number cannot be parsed 
Contextual code suggestions in your IDE  Get Codota for Java