Test.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Administrator
*/
public class computerrectarea {
public void rectarea(){
double height;
double wight;
double area;
height=23.89;
wight=108.87;
area=height*wight;
System.out.println(area);
}
}
ccxhanshu.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Administrator
*/
public class ccxhanshu {
public static int sum(){
int i,sum;
sum=0;
for(i=1;i<10;i++)
{
sum=sum+1;
}
return sum;
}
public static void print(){
System.out.println("hello world");
}
public static void fac(){
int i,sum;
sum=1;
for (i=1;i<=10;i++)
{
sum=sum*i;
System.out.println(sum);
}
}
}
computerrectarea.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Administrator
*/
public class computerrectarea {
public void rectarea(){
double height;
double wight;
double area;
height=23.89;
wight=108.87;
area=height*wight;
System.out.println(area);
}
}