登录
首页 » Java » java

java

于 2011-11-15 发布 文件大小:4KB
0 149
下载积分: 1 下载次数: 3

代码说明:

  修改实验7中定义的Rectangle类,使之拥有两个构造方法。其中一个是默认的,它使两点的坐标都为(0,0) 另一个带有4个参数,求出左上角和右下角点坐标为(2.1,3.2)、(5.2,6.3)的矩形的周长及面积,再利用带参数的构造方法创建Rectangle对象,求出左上角和右下角点坐标为(1,2)、(6.8,10.5)的矩形的周长及面积.(Modify the definition of experiment 7 Rectangle class, so that it has two constructors. One is the default, it makes two points of the coordinate of (0,0) the other with four parameters, find the upper left and lower right corner coordinates (2.1,3.2), (5.2,6.3) and perimeter and area of ​ ​ a rectangle, and then use a parameterized constructor method to create a Rectangle object, find the upper left and lower right corner coordinates (1,2), (6.8,10.5) rectangle of perimeter and area.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Thread
    线程Demo join interrupt sleep yield等几个常用线程方法(a simple Thread demo)
    2014-08-20 09:39:33下载
    积分:1
  • video-edit-process
    视频剪辑处理,简易的操作界面,友好的帮助提示,让你轻轻松松对视频文件进行剪辑处理.(video clips, simple interface, with the help of friendly tips Let your light-hearted video clips document processing.)
    2007-04-24 13:25:31下载
    积分:1
  • bpso
    基于粒子群的无功优化编程,使得系统网损最小。(Reactive power optimization based on particle swarm of programming, system network loss is minimal.)
    2020-12-25 11:19:05下载
    积分:1
  • BaiduMap
    一款可以实现了百度地图定位和规划功能,该功能很简单,而且又很容易上手,当我们在百度地图的定位后,然后指定一个终点,从可以在当前位置路线规划等功能,喜欢的朋友可以研究一下看看。(A can achieve the function of Baidu map positioning and planning, the function is very simple, and very easy to get started, when we in Baidu map of the location, and then specify a destination, in the current position of route planning and other functions, like a friend can look at to see.)
    2016-06-11 18:24:44下载
    积分:1
  • DownFileGuess
    基于http协议的java断点续传http协议 断点续传.上传java java断点续传(Java HTTP based on http protocol http protocol HTTP. Upload java java HTTP)
    2013-04-12 08:40:46下载
    积分:1
  • device-manage
    一个JAVA做的设备管理系统,基本输入,输出操作(a JAVA device manage)
    2011-12-26 22:56:00下载
    积分:1
  • Eclipse_chinese
    Eclipse 中文版帮助文档,仅供参考(Chinese version of the Eclipse help documentation for reference purposes only)
    2013-08-15 23:46:25下载
    积分:1
  • Bluetooth-master
    一种蓝牙定位的java程序,功能完善,实现质心定位,三边定位和最小二乘算法,通过布置蓝牙的位置,定位精度在0.5M左右(A bluetooth positioning Java program, the function is perfect, realize the centroid localization, trilateral positioning and least squares algorithm, through the arrangement of the position of the bluetooth, positioning accuracy at about 0.5 M)
    2020-11-09 10:09:47下载
    积分:1
  • NIOAccess
    This class is used via J N I by code in frameworks/base Source Code for Andriod.
    2013-12-16 11:37:02下载
    积分:1
  • Exe8_1
    绘制1个沿圆形轨道运动的红色球体和1个沿椭圆轨道运动的蓝色球体。两个轨道圆心重合,圆的半径为100,椭圆的长短轴半径分别为200和100,运动方向为顺时针(Draw a circular orbital motion along the red sphere and a movement along the elliptical orbit of the blue sphere. Center two tracks overlap, the circle Radius of 100, the radius of the ellipse minor axis of 200 and 100, respectively, for the clockwise direction of motion)
    2011-12-23 22:02:45下载
    积分:1
  • 696518资源总数
  • 106182会员总数
  • 24今日下载