Data type conversion in Java

xiaoxiao2021-03-06  76

Problem in programming often encounters data type conversion, now the conversion that is often used is summarized as follows:

INT -> Integer Integer.toString (int Arg); new integer (int Arg);

INT / BOOLEAN / CHAR / Long / Object -> String String.Valueof (int / boolean / char / long / Object arg);

String -> int integer.parseint (string arg);

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

New Post(0)