Here you can find the source of toNumber(String s)
public static int toNumber(String s) throws NumberFormatException
//package com.java2s; //License from project: Open Source License public class Main { public static int toNumber(String s) throws NumberFormatException { return Integer.valueOf(s); }/* w ww . j a va 2s .c o m*/ }