摘要:
1 package com.yhqtv.testInheritance; 2 //主程序 3 public class CylinderTest { 4 public static void main(String[] args) { 5 6 Cylinder cylinder=new Cylind 阅读全文
posted @ 2020-04-22 17:25
鑫淼
阅读(154)
评论(0)
推荐(0)
摘要:
1 package com.yhqtv.duotai; 2 //主方法 3 public class KidsTest { 4 public static void main(String[] args) { 5 Kids someKid=new Kids(16); 6 someKid.setSex 阅读全文
posted @ 2020-04-22 16:45
鑫淼
阅读(199)
评论(0)
推荐(0)
摘要:
1 package com.yhqtv.demo02.ThreadPool; 2 3 import java.util.Arrays; 4 5 public class Test { 6 public static void main(String[] args) { 7 //currentTime 阅读全文
posted @ 2020-04-22 11:38
鑫淼
阅读(160)
评论(0)
推荐(0)
摘要:
1 package com.yhqtv.demo02.ThreadPool; 2 3 import java.util.Calendar; 4 import java.util.Date; 5 6 /* 7 * java.util.Calendar类:日历类 8 * Calendar类是一个抽象类, 阅读全文
posted @ 2020-04-22 11:11
鑫淼
阅读(212)
评论(0)
推荐(0)
摘要:
定义一个矩形类Rectangle:(知识点:对象的创建和使用)1 定义三个方法:getArea()求面积、getPer()求周长,showAll()分别在控制台输出长、宽、面积、周长。2 有2个属性:长length、宽width3 创建一个Rectangle对象,并输出相关信息 1 package 阅读全文
posted @ 2020-04-22 10:26
鑫淼
阅读(181)
评论(0)
推荐(0)
摘要:
1 package com.yhqtv.demo02.ThreadPool; 2 3 //生成随机六个字母 4 5 public class Test { 6 public static void main(String[] args) { 7 String result = "";//定义空字符串 阅读全文
posted @ 2020-04-22 09:54
鑫淼
阅读(493)
评论(0)
推荐(0)

浙公网安备 33010602011771号