Java Convert String & Int
To convert a int to string:
int num = 123; String str = String.valueOf(num);
To convert a string to int:
String str = "123"; int num = Integer.valueOf(str);
版权声明:本文为博主原创文章,未经博主允许不得转载。
To convert a int to string:
int num = 123; String str = String.valueOf(num);
To convert a string to int:
String str = "123"; int num = Integer.valueOf(str);
版权声明:本文为博主原创文章,未经博主允许不得转载。