JAVA 2应用开发指南
源代码在线查看: test1.java
//Test1.Java
public class Test1
{
public static void main(String args[])
{
int i=100;
long l=5252524;
double d=123.456;
float f=3.1415f;
Integer obj1=new Integer(i);
Float obj2=new Float(f);
Long obj3=new Long(l);
Double obj4=new Double(d);
String s1=obj1.toString();
String s2=obj2.toString();
String s3=obj3.toString();
String s4=obj4.toString();
System.out.println("s1 ="+s1);
System.out.println("s2 ="+s2);
System.out.println("s3 ="+s3);
System.out.println("s4 ="+s4);
}
}