int and string conversion
2005-06-30 21:37
405 查看
int convert to String:
String courseID="";
int courseId=0;
Method 1: courseID=((Integer)courseId).toString();
Method 2: courseID=courseId+"";
String convert to int:
-- Integer.parseInt(courseId);
String courseID="";
int courseId=0;
Method 1: courseID=((Integer)courseId).toString();
Method 2: courseID=courseId+"";
String convert to int:
-- Integer.parseInt(courseId);
相关文章推荐
- Java: string and int conversion
- string to int to double and int double to string
- BYTE TO HEX AND HEX TO BYTE STRING CONVERSION
- int and char conversion
- String convert int , and int convert String
- Convertion between string and int in C++
- 'Conversion failed when converting date and/or time from character string.DB-Lib error message 241,
- Incompatible conditional operand types int and String 三目运算出错
- golang random string and int
- string and int
- ATL and MFC String Conversion Macros(Cstring转char*)
- java int and string convert
- java int and string convert
- Conversion Between BitString and String
- Java-convert between INT and STRING
- int ,string and ViewState
- python int convert string and vice versa
- atoi char and string to int
- Java Enum and Android Intdef/Stringdef annotation
- std::u32string conversion to/from std::string and std::u16string