Convert between String, Integer, INT in Java

xiaoxiao2021-03-05  28

String, Integer, INT conversion

String <- int int; string <- integer_integer.tostring ();

INT <- integer_integer.intValue (); int <- string integer.parseint (_STR);

Integer <- string new integer (integer.parseint (_str)); Integer <- int new ingeger (_INT);

Other conversion is similar.

转载请注明原文地址:https://www.9cbs.com/read-33305.html

New Post(0)