Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How JAVA transforms numeric characters into data with Integer class
How JAVA transforms numeric characters into data with Integer class
Java can be directly converted by using the Parselong method of the long class. Examples are as follows:

Parcel? com . Qiu . Lin . he;

Public? Class? Shi Ce? {

Public? Static electricity Invalid? main(String[]? args)? {

Dragon? l 1? =? long . parse long(" 123 "); //Forced conversion

System.out.println(l 1? +? "Integer successfully converted to string type");

}

}

The running results are as follows: