@@ -0,0 +1,1289 @@
+public class TypeChange %7B%0A  public TypeChange() %7B%0A  %7D%0A  //change the string type to the int type%0A  public static  int stringToInt(String intstr)%0A  %7B%0A    Integer integer;%0A    integer = Integer.valueOf(intstr);%0A    return integer.intValue();%0A  %7D%0A  //change int type to the string type%0A  public static String intToString(int value)%0A  %7B%0A    Integer integer = new Integer(value);%0A    return integer.toString();%0A  %7D%0A  //change the string type to the float type%0A  public static  float stringToFloat(String floatstr)%0A  %7B%0A    Float floatee;%0A    floatee = Float.valueOf(floatstr);%0A    return floatee.floatValue();%0A  %7D%0A  //change the float type to the string type%0A  public static String floatToString(float value)%0A  %7B%0A    Float floatee = new Float(value);%0A    return floatee.toString();%0A  %7D%0A  //change the string type to the sqlDate type%0A  public static java.sql.Date stringToDate(String dateStr)%0A  %7B%0A    return  java.sql.Date.valueOf(dateStr);%0A  %7D%0A  //change the sqlDate type to the string type%0A  public static String dateToString(java.sql.Date datee)%0A  %7B%0A    return datee.toString();%0A  %7D%0A %0A  public static void main(String%5B%5D args)%0A  %7B%0A    java.sql.Date day ;%0A    day = TypeChange.stringToDate(%222003-11-3%22);%0A    String strday = TypeChange.dateToString(day);%0A    System.out.println(strday);%0A  %7D%0A %0A%0A%7D%0A

Create TypeChange.java