登录
首页 » Java » java

java

于 2011-11-15 发布 文件大小:4KB
0 76
下载积分: 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 个回复

  • xmljava
    xml和java做学生管理系统 你可以看一看(xml and ja va stu dent gua nli xi tong ni ke yi kan kan kan kan kan kan kanvvkankankan kan kan kan kan kan )
    2013-11-04 14:31:31下载
    积分:1
  • Hibernate_Javake_Ch02_Config
    Hibernate运行Demo,详细讲解启动配置文件Hibernate.cfg如何编写,包括SessionFactory里的数据源如何配置(Hibernate Run Demo, explain in detail how the startup configuration file Hibernate.cfg preparation, including SessionFactory in how to configure data sources)
    2013-11-04 00:07:37下载
    积分:1
  • lNEyf19l
    Java五子棋编程 (Gobang Java Programming)
    2008-12-19 15:07:48下载
    积分:1
  • FirstMissingPositive112_Done
    给出数组中的一串数字,找到里面缺省的第一个正整数(For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses constant space. )
    2017-05-01 12:32:34下载
    积分:1
  • dateUtil
    说明:  日期帮助,自动输出排班人员,自定义配排班类型(Date Help, Scheduling)
    2020-06-22 15:40:01下载
    积分:1
  • jgame-code-civi-students3k
    Civilization game source code in Java: This game is a single or multiplayer strategy game. The player’s character is depends on the ruler of a civilization. It is a simple java game which is also developed for Android device platforms. Yeah! This game supports the android mobile devices as well.
    2014-02-09 12:55:12下载
    积分:1
  • Coursedesign
    源代码转换的一个小小的实现,写得比较一般,但是功能齐全(Source code into a small implementation written in general, but fully functional)
    2012-12-18 20:28:11下载
    积分:1
  • IO
    说明:  java io学习实例,io各功能说明,java文件读取,FileOutputStreamDemo.java(Java IO learning examples, I each function description)
    2019-08-13 15:58:49下载
    积分:1
  • 历年档案数据统计(截止2017年)
    根据获取到的数据导出到Excel表格中,列名固定,项目名称动态循环输出(According to the data obtained, it is exported to Excel table with fixed column name and dynamic circular output of project name.)
    2020-06-23 17:40:02下载
    积分:1
  • virtqal
    一个关于系统的JAVA源码 里面有详细的说明和模拟售票系统程序(A system about JAVA source with detailed instructions and simulate the ticketing system program)
    2017-03-18 16:22:58下载
    积分:1
  • 696518资源总数
  • 104226会员总数
  • 29今日下载