int and string conversion

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);

posted on 2005-06-30 21:37  猎人小屋  阅读(392)  评论(0编辑  收藏  举报

导航