java BufferedReaderºÍInputStreamReaderµÄÇø±ð
BufferedReader:
Read text from a character-input
stream, buffering characters so as to provide for the
efficient reading of characters, arrays, and lines.
InputStreamReader:
An InputStreamReader is a bridge from byte streams to
character streams: It reads bytes and decodes them
into characters using a specified charset.
Ïà¹ØÎĵµ£º
£¨1£©Ctrl+M ££Çл»´°¿ÚµÄ´óС
£¨2£©Ctrl+Q ££Ìøµ½×îºóÒ»´ÎµÄ±à¼´¦
£¨3£©F2 ££µ±Êó±ê·ÅÔÚÒ»¸ö±ê¼Ç´¦³öÏÖTooltipʱºò°´F2Ôò°ÑÊó±êÒÆ¿ªÊ±Tooltip»¹»áÏÔʾ¼´Show Tooltip Description¡£
F3   ......
public static void main(String[] args){
SimpleDateFormat da = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
Calendar calendar = Calendar.getInstance();
Date date = calendar.getTime();
String aimTime ="2010-02-03 17:30:00.000";
int count = 0;
Date aimDate = d ......
1.ÉùÃ÷°ü£ºpackage °üÃû
¸ÃÓï¾äÊÇ×÷ΪjavaÔ´ÎļþµÄµÚÒ»ÌõÓï¾ä Ö¸Ã÷¸ÃÔ´Îļþ¶¨ÒåµÄÀàËùÔڵİü
2.µ¼°ü£ºimport °üÃû
¸ÃÓï¾ä±ØÐëдÔÚpackageÓï¾äºÍÔ´Îļ ......
¹Ø¼ü×Ö: byte String
ÎÊÌâ1£ºjavaÖÐûÓÐʵÏÖÕâÖÖ“byte a = 0xB2 --> String b = “B2””ת»»µÄ¼òµ¥ÊµÏÖÐèÒª×Ô¼ºÊµÏÖ¡£
´ð£º×Ô¼º±àдµÄת»»º¯Êý£¬Ë¼Â·½«byteµÄ¸ßµÍ4λ·Ö¿ª£¬·Ö±ðת»»Îª¶ÔÓ¦µÄ×Ö·ûÈ»ºóºÏ³É·µ»ØµÄ×Ö·û´®¡£
java ´úÂë
public static String byteToString(byte b) { ......