JavaÖÐCalendarºÍDateµÄһЩʹÓÃÓ÷¨¼¼ÇÉ
1. Èç¹ûÒѾ֪µÀij¸öµØµãµÄʱÇø£¬Ä꣬Ô£¬ÈÕ£¬Ê±£¬·Ö£¬Ã룬ϣÍûµÃµ½×ª»»ºóµÄ±¾ÏµÍ³Ê±¼ä£¬¿ÉÒÔ²ÉÓÃÈçϵķ½·¨£º
·½·¨£º¼ÙÉèʱÇøÊÇGMT+08:00,£¬ÄêÊÇ2009Ä꣬ÔÂÊÇ11Ô£¬ÈÕÊÇ7ÈÕ£¬Ê±ÊÇ10ʱ£¬·ÖÊÇ50·Ö£¬ÃëÊÇ30¡£
public class Time {
public static void main(String[] args) {
TimeZone tz = TimeZone.getTimeZone("GMT+08:00"); // »ñµÃʱÇø
Calendar cal = Calendar.getInstance();
cal.setTimeZone(tz); // ÉèÖÃʱÇø
cal.set(Calendar.YEAR, 2009); // ÉèÖÃÄê
cal.set(Calendar.MONTH, Calendar.NOVEMBER); // ÉèÖÃÔÂ
cal.set(Calendar.DAY_OF_MONTH, 7); // ÉèÖÃÈÕ
cal.set(Calendar.HOUR_OF_DAY, 10); &
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
×÷Õߣº³µ¶« ·¢±íÓÚ£º2002-07-09 15:07 ×îºó¸üÐÂÓÚ£º2007-04-12 11:04
°æȨÉùÃ÷£º¿ÉÒÔÈÎÒâתÔØ£¬×ªÔØʱÇëÎñ±ØÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂÔʼ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾ÉùÃ÷¡£
http://www.chedong.com/tech/hello_unicode.html
²»ÖªµÀÄãÓÐûÓÐÕâÑùµÄ¸ÐÊÜ£ºÎªÊ²Ã´PHPºÜÉÙÓÐÂÒÂëÎÊÌâ¶øÓÃJava×öWEBÓ¦ÓÃÈ´ÕâôÂé·³ÄØ£¿ÎªÊ²Ã´ÔÚGoogl ......
ÈçºÎ×ÔѧjavaѸËÙ³ÉΪjava¸ßÊÖ
ÒªÏëѧºÃJava£¬Ê×ÏÈÒªÖªµÀJavaµÄ´óÖ·ÖÀà¡£ÎÒÃÇÖªµÀ£¬×Ô´ÓSunÍƳöJavaÒÔÀ´£¬¾ÍÁ¦Í¼Ê¹Ö®ÎÞËù²»°ü£¬ËùÒÔJava·¢Õ¹µ½ÏÖÔÚ£¬°´Ó¦ÓÃÀ´·ÖÖ÷Òª·ÖΪÈý´ó¿é£ºJ2SE,J2MEºÍJ2EE,ÕâÒ²¾ÍÊÇSunONE(Open NetEnvironment)Ìåϵ¡£J2SE¾ÍÊÇJava2µÄ±ê× ......
package com.hefeng.test;
import java.text.DateFormat;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util ......
JavaÖÐInputstreamÓëReaderµÄÇø±ð
ReaderÖ§³Ö16λµÄUnicode×Ö·ûÊä³ö£¬InputStreamÖ§³Ö8λµÄ×Ö·ûÊä³ö¡£
ReaderºÍInputStream·Ö±ðÊÇI/O¿âÌṩµÄÁ½Ì×ƽÐжÀÁ¢µÄµÈ¼¶»ú¹¹£¬
InputStream¡¢OutputStreamÊÇÓÃÀ´´¦Àí8λԪµÄÁ÷£¬
Reader¡¢WriterÊÇÓÃÀ´´¦Àí16λԪµÄÁ÷¡£
¶øÔÚJAVAÓïÑÔÖУ¬byteÀàÐÍÊÇ8λµÄ£¬charÀàÐÍÊÇ1 ......