pubilc class c7_10

来源:百度知道 编辑:UC知道 时间:2024/05/25 20:31:59
pubilc class c7_10
{
public static void main(string[]args )
{
object y="hello";
string s="good bye";
char cc[]={'a','b','c','d','e','f'};
boolen b=false;
char c='z';
long k=12345678;
int i=7;
float f=2.5f;
double d=33.777;
stringbuffer buf=new stringbuffer();
buf.insert(0,y);buf.insert(0,s);
buf.insert(0,cc);
buf.insert(0,b);buf.insert(0,c);
buf.insert(0,i);
buf.insert(0,k);buf.insert(0,f);
buf.insert(0,d);
system.out.println("buf="+buf);
}
}

public static void main(String[] args) {
Object y = "hello";
String s = "good bye";
char cc[] = { 'a', 'b', 'c', 'd', 'e', 'f' };
boolean b = false;
char c = 'z';
long k = 12345678;
int i = 7;
float f = 2.5f;
double d = 33.777;
StringBuffer buf = new StringBuffer();
buf.insert(0, y);
buf.insert(0, s);
buf.insert(0, cc);
buf.insert(0, b);
buf.insert(0, c);
buf.insert(0, i);
buf.insert(0, k);
buf.insert(0, f);
buf.insert(0, d);
System.out.println("buf=" + buf);
}