publicclassTest1_1{publicstaticvoidmain(String[] args){
System.out.println("Welcom to Java\n");
System.out.println("Welcom to Computer Java\n");
System.out.println("Welcom to Java\n");}}
1.7
publicclassTest1_7{publicstaticvoidmain(String[] args){double signal =1.0;double sum =0.0;for(int i=1;i<7;i++){
sum+=signal*1.0/(2*i-1);
signal*=-1.0;}
System.out.println(4.0*sum);
sum =0.0;for(int i=1;i<8;i++){
sum+=signal*1.0/(2*i-1);
signal*=-1.0;}
System.out.println(4.0*sum);}}
1.9
publicclassTest1_9{publicstaticvoidmain(String[] args){double S,width=4.5,height=7.9;
System.out.println("The square is "+width*height+", and the circumference is "+2*(width+height)+".");}}
###1.1public class Test1_1 { public static void main(String[] args){ System.out.println("Welcom to Java\n"); System.out.println("Welcom to Computer Java\n"); System.out.println("Welcom to Java\n"); }}###1.7public class Test1_7{ public static