摘要: package com.wms; public class HumanClone { public static void main(String[] args) { Human hm1 = new Human("张三",60); try { Human hm2 = (Human) hm1.clon 阅读全文
posted @ 2016-02-02 10:37 sweetstar86 阅读(702) 评论(0) 推荐(0) 编辑
摘要: package com.wms; import java.util.Arrays; public class DogAgeSort { public static void main(String[] args) { Dog[] dogs = {new Dog("小黄",2), new Dog("小 阅读全文
posted @ 2016-02-02 10:25 sweetstar86 阅读(1831) 评论(0) 推荐(0) 编辑
摘要: Java实现计算两个日期间相隔周数 package com.wms; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Scanner; public class WeeksFig 阅读全文
posted @ 2016-02-02 10:06 sweetstar86 阅读(5557) 评论(0) 推荐(0) 编辑