1. SHORT -> INT Exp: short shortvar = 0; int int.com = 0; shortvar = (short) intvar2. Int -> short exp: short shortvar = 0; int int.com = 0; intvar = shortvar; 3. Int -> String exp: int int = 1; string stringvar; stringvar = string.valueof (intvar); 4. float-> string exp: float floatvar = 9.99f; string stringvar; stringvar = String.Valueof (floatvar); 5. double-> String Exp: double doublevar = 99999999.99; String stringvar; stringvar = String.valueOf (doublevar); 6. char-> String Exp: char charvar = 'a'; String stringvar; stringvar = String.valueOf (charvar); 7. String-> Int, Float, Long, Double Exp: String INTSTRING = "10"; string floatstring = "10.1f"; string longstring = "99999999"; string doubleString = "99999999.9"; int i = integer.parseint INTSTRING); float f = float.Parsefloat (floatstring); long L = long. parselong (longstring); double d = double. parseouble (doublestring); 8. String-> Byte, Short Exp: string s = "0"; Byte b = byte.ParseByte (s); Short sh = short.parseshort (s); 9. String-> char exp: string s = "abc"; char a = s.chara T (0); return character a 10. String -> boolean exp: string s = "true"; boolean flag = bolean.valueof (s); the above mainly introduces the basic type data and String type data in Java Transformation. I believe that everyone can also have some rules after they have seen it, summed up, so that everyone can memorize: 1. Basic Type -> String Type Using the String class overload method Valueof (Basic Type Parameters) 2. String Type -> Basic Types Use basic types of packaging classes (such as: Byte's packaging class Byte, INT packages Integer, etc.) Parsexxxxx (String Type Parameters) method. XXXXX is a corresponding packaging class name.