登录
首页 » Java » java

java

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

  • 1
    说明:  自主开发的java单机游戏,九宫图,希望能帮助需要的朋友。(Self-developed java stand-alone game, Magical Squares, hoping to help a friend in need.)
    2012-06-24 14:33:17下载
    积分:1
  • simplejavaprogramming
    题目:打印出杨辉三角形(要求打印出10行题目:输入3个数a,b,c,按大小顺序输出。 题目:输入数组,最大的与第一个元素交换,最小的与最后一个元素交换,输出数组。 题目:有n个整数,使其前面各数顺序向后移m个位置,最后m个数变成最前面的m个数 题目:编写一个函数,输入n为偶数时,调用函数求1/2+1/4+...+1/n,当输入n为奇数时,调用函数1/1+1/3+...+1/n(Topic: Print out the Triangle (10 lines required to print out the Title: Enter the 3 numbers a, b, c, according to the order of output. Title: input array, the largest exchange with the first element, the smallest and the last element of the exchange, output array. Topic: There are n integers, to move back in front of the order m of the number of positions, finally becoming the foremost m m the number of number of topics: write a function, the input n is even, the call function evaluation 1/2+1/4+...+ 1/n, when the input n is odd, call the function 1/1+1/3+...+ 1/n)
    2011-05-09 19:11:58下载
    积分:1
  • MagicDemoJavaApp
    java中调用matlab,入门程序,包括matlab程序,还有java端调用matlab所编写的程序(java call matlab, entry procedures, including the matlab program, as well as the java client call a program written in matlab)
    2010-01-14 15:00:48下载
    积分:1
  • 200611565948742
    点对点聊天,很不错的,又称图形界面下的点对点通信程序(peer-to-peer chatting, very good, also known as the graphical interface of peer-to-peer communication program)
    2007-04-28 02:15:48下载
    积分:1
  • excelImport
    用java实现的excel导入数据库,包括商品和种类的导入(Implemented using java database excel import, including import of commodities and types of)
    2010-12-23 12:10:19下载
    积分:1
  • lab1
    search word,word puzzle(search word)
    2014-10-25 05:24:18下载
    积分:1
  • java2
    面试java基础,经常出现的,资料的详细功能为面试java基础,包含经常出现的,(Java interview-based, often, the information detailed interview java based functions, including recurrent,)
    2011-11-01 15:50:30下载
    积分:1
  • F__1562205512848
    java 操作文件写入,读取。。。。。。。。。。。。(Java operation file write, read)
    2020-06-25 17:00:02下载
    积分:1
  • cmpp2.0 java示例 MinaCmpp2Client-master
    说明:  cmpp2.0 java示例,示例简单明了,除工具一个工具类文件和几个协议类文件,所有报文操作都在一个文件内,由几个方法组成,希望对刚接触cmpp开发的新手.(The example of CMPP2.0 Java is simple and clear. Except for tool class file and protocol class file, all message operations are in one file and consist of several methods. I hope to be a novice who has just come into contact with the development of cmpp.)
    2020-06-19 02:00:01下载
    积分:1
  • 1
    说明:  第一个Java例子程序,源文件为HelloWorld.java,可以使用 javac HelloWorld.java 进行编译,然后运行, java HelloWorld(The first example of a Java program, the source file is HelloWorld.java, you can use the javac HelloWorld.java compile and run, java HelloWorld)
    2015-03-21 13:27:37下载
    积分:1
  • 696516资源总数
  • 106428会员总数
  • 7今日下载