import java.util.Calendar;import java.util.Date;import java.util.GregorianCalendar;import sun.util.calendar.Gregorian;public class Test { public static void main(String[] args){ GregorianCalendar gc =...
posted @ 2010-11-11 18:43 李宏招 阅读(636) 评论(1) 推荐(1)
摘要: Scanner 和BufferedReader同样能实现将键盘输入的数据送入程序,下面是其程序的简单对比://BufferedReader的使用import java.io.BufferedReader;import java.io.InputStreamReader;import java.io.IOException;public class BufferedReaderTest { publ... 阅读全文
posted @ 2010-11-04 18:04 李宏招 阅读(285) 评论(0) 推荐(1)
摘要: import java.util.Collection;import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.Set;/**** @author Administrator*/public class StuMapTest { public static void main(... 阅读全文
posted @ 2010-10-30 19:30 李宏招 阅读(2084) 评论(0) 推荐(1)
摘要: import com.sun.org.apache.bcel.internal.generic.BREAKPOINT;import java.util.Iterator;import java.util.TreeSet;/**** @author Administrator*/public class TreeSetTest { public static void main(String[] a... 阅读全文
posted @ 2010-10-30 19:12 李宏招 阅读(921) 评论(0) 推荐(0)
摘要: import java.util.Scanner;public class StringTest { public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.println("输入一串字符"); String words = sc.next(); System.out.prin... 阅读全文
posted @ 2010-10-16 17:05 李宏招 阅读(357) 评论(2) 推荐(1)
< 2025年4月 >
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 1 2 3
4 5 6 7 8 9 10

点击右上角即可分享
微信分享提示