rectangle
来源:互联网 发布:网络空间安全战略 编辑:程序博客网 时间:2024/06/05 04:12
/* * To change this template, choose Tools | Templates * and open the template in the editor. *//** * * @author Administrator */import java.util.Scanner;public class Example2_6 { public static void main(String agrs[]){ Rect rectangle=new Rect(); Scanner reader =new Scanner (System.in); System.out.println("input rectangle's width and affirm"); rectangle.width = reader.nextDouble(); System.out.println("input rectangle's heitght and affirm"); rectangle.height= reader.nextDouble(); double area=rectangle.getArea(); System.out.println("the area of rectangle is :"+area); } }/* * To change this template, choose Tools | Templates * and open the template in the editor. *//** * * @author Administrator */public class Rect { double width; double height; double getArea() { double area=width*height; return area; }}
0 0
- Rectangle
- Rectangle
- Rectangle
- rectangle
- Rectangle
- Rectangle
- rectangle
- Rectangle
- Rectangle VC
- word rectangle
- draw rectangle
- Maximal Rectangle
- Maximal Rectangle
- GDI -Rectangle
- Maximal Rectangle
- Maximal Rectangle
- Maximal Rectangle
- Maximal Rectangle
- java ArrayList源码分析
- 分段收费
- hibernate.hbm2ddl.auto
- Python 学习笔记(1)——字符串的处理
- Spring+SpringMVC+Mybatis框架搭建
- rectangle
- HTML学习记录之超链接和路径
- 滑动滚轮放大缩小
- 【seen看世界】:人们为什么会趋于稳定?
- .NET转JAVA之路005
- [LeetCode] Find the Difference
- 动画的简单使用
- 第43课:Spark 2.0编程实战之SparkSession、DataFrame、DataSet开发实战
- php错误级别