日期:2014-05-20 浏览次数:20632 次
import java.lang.*;
class CRectangle{
double width;
double height;
}
public class hw8_3 {
public static void main(String args[]){
CRectangle rect1 = new CRectangle();
rect1.width = 15.6;
rect1.height = 10.8;
System.out.println("area="+(rect1.width*rect1.height));
System.out.println("float的最大值:"+java.lang.Float.MAX_VALUE);
}
}
import java.lang.*;
class CRectangle{
float width;
float height;
}
public class hw8_3 {
public static void main(String args[]){
CRectangle rect1 = new CRectangle();
rect1.width = 15.6;
rect1.height = 10.8;
System.out.println("area="+(rect1.width*rect1.height));
System.out.println("float的最大值:"+java.lang.Float.MAX_VALUE);
}
}