Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads WEB Code JSP/Java
  • Category : JSP/Java
  • Tags :
  • Update : 2008-10-13
  • Size : 5.16kb
  • Downloaded :0次
  • Author :fan****
  • About : fangfei
  • PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
(1) to implement a Point class, the class contains says the coordinates of two type int variable x, y, and constructor Point () and Point (int xx, int yy), return the x and y values int getX () and int getY () method, to calculate the distance between two points of double short (Point) method. The square root is used in the math.sqrt () method. (2) to implement a Circle class, the class contains a center Point type variable center, said radius radius, int variables, as well as construction method Circle (), Circle (int xx, int yy, int r), Circle (Point c, int r), and returns the pupil int generating (), double area () method, which returns two Circle whether for the same Circle (0), concentric circles (return 1), the intersection of round (2), separation of Circle (return to 3), contains the Circle (such as return 4) relationship of int base Circle (c) and other methods. The PI value can be used with math.pi constants. (3) implement the ClassTest class of the above two classes. This class creates a number of Point objects and Circle objects in the main method, and invokes the relevant method to output the return value of the method to verify its correctness. (4) adjust the package names of Point classes, Circle classes and main classes to p1, p2, p3, and rerun to verify that they are running correctly.
Packet file list
(Preview for download)
Packet : 13898382bao.rar filelist
bao\包\p3\S.class
bao\包\p2\Circle.class
bao\包\p1\point.class
bao\class\point.java
bao\class\Circle.java
bao\class\S.java
bao\class\p1\point.class
bao\class\p2\Circle.class
bao\class\p3\S.class
bao\包\p3
bao\包\p2
bao\包\p1
bao\class\p1
bao\class\p2
bao\class\p3
bao\包
bao\class
bao
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is the largest source code store in internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.