- 博客(6)
- 收藏
- 关注
原创 JAVA程序设计第十章10_6
public class Exercise10_06 { public static void main(String[] args) { final int LIMIT = 120; int count = 0; StackOfIntegers stack = new StackOfIntegers(); // Repeatedly find prime n...
2020-04-04 16:45:25 202
原创 JAVA程序设计第十章10_5
public class Exercise10_05 { public static void main(String[] args) { StackOfIntegers stack = new StackOfIntegers(2); java.util.Scanner input = new java.util.Scanner(System.in); // Prom...
2020-04-04 16:44:27 448
原创 JAVA程序设计第十章10_4
public class Exercise10_04 { public static void main(String[] args) { MyPoint p1 = new MyPoint(); MyPoint p2 = new MyPoint(10, 30.5); System.out.println(p1.distance(p2)); System.out....
2020-04-04 16:43:38 290
原创 JAVA程序设计第十章10_3
```javapublic class Exercise10_03 { public static void main(String[] args) { MyInteger n1 = new MyInteger(5); System.out.println("n1 is even? " + n1.isEven()); System.out.println("n1 i...
2020-04-02 15:40:09 469
原创 JAVA程序设计第十章10_2
public class Exercise10_02 { public static void main(String[] args) { BMI bmi1 = new BMI("John Doe", 18, 145, 5, 10); System.out.println("The BMI for " + bmi1.getName() + " is " + bmi1...
2020-04-02 15:38:22 518
原创 JAVA程序设计第十章10_1
JAVA程序设计第十章10_1public class Exercise10_01 {public static void main(String[] args) {Time time1 = new Time();System.out.println("Hour: " + time1.getHour() + " Minute: " +time1.getMinute() + " Secon...
2020-04-02 15:33:32 347
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人