上一页 1 ··· 5 6 7 8 9
摘要: package DemoTest; public class IntegerTest { public static void main(String[] args) { Integer i1 = new Integer("123"); System.out.println(i1); Integer 阅读全文
posted @ 2020-11-20 01:01 柯南同学 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 静态工厂模式: package shejimoshi; /* * 静态工厂模式(工厂模式) * * */ public class Demo1 { public static void main(String[] args) { // Restaurant r1 = new Fish(); // r 阅读全文
posted @ 2020-11-19 01:00 柯南同学 阅读(120) 评论(0) 推荐(0) 编辑
摘要: package zzz; import zzz.Circle.Draw; public class innerClass { public static void main(String[] args) { Circle circle = new Circle(10); // 成员内部类创建方式必须 阅读全文
posted @ 2020-11-16 15:27 柯南同学 阅读(87) 评论(0) 推荐(0) 编辑
摘要: package zzz; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.i 阅读全文
posted @ 2020-11-16 12:25 柯南同学 阅读(79) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9