JAVA³õÂóÌ(Touch)0.1
JavaµÄ×¢ÏúÓï¾äǰҪʹÓÃ×¢ÊÍ·û“//”¡£
ÀàÉùÃ÷¹Ø¼ü×Öclass´´½¨ÁËÒ»¸ö×Ô¶¨ÒåÀࣻÀàµÄÃû×ÖΪWelcome2£¬ÎªJavaÉùÃ÷ÀàÓï¾ä£ºclass Welcome2 {}¡£
·½·¨¹Ø¼ü×ÖmainÉùÃ÷ÁËmain()·½·¨£¬Àý£ºPublic static void main(String args[]) {}ÖкìÉ«×ÖÌå±íʾָ¶¨mainÊǹ«Óеġ¢¾²Ì¬µÄ¡¢ÎÞ·µ»ØÖµµÄ¡£
string:Ò»´®£»°Ñ.......´®ÆðÀ´£» args:Êý×飬³ÆΪmain·½·¨µÄÃüÁîÐвÎÊý¡£
Êý¾ÝÀàÐ͹ؼü×ÖintÉùÃ÷±äÁ¿Óï¾ä¡£
·ÖºÅ“£»”ÓÃÀ´ÉùÃ÷JavaÓï¾ä½áÊø¡£
JavaÓï¾äµÄ»ù±¾ÔªËØΪ±êʶ·û¡¢¹Ø¼ü×Ö¡¢·Ö¸ô·û¡£»ù±¾ÔªËØÊDz»ÄÜÔÙ·Ö½âµÄÔªËØ¡£
±êʶ·û£ºÔÚJavaÖУ¬±äÁ¿¡¢³£Á¿¡¢Àà¡¢·½·¨Óë½Ó¿ÚµÈ¶¼ÐèÒªÖ¸¶¨Ãû³Æ£¬ÕâЩÃû³Æ¾Í½Ð×ö±êʶ·û¡£
Ìص㣺±êʶ·û±ØÐëÒÔÒ»¸ö×Öĸ¡¢Ï»®Ïß»òÃÀÔª·ûºÅ“$”¿ªÍ·£¬ºóÃæµÄ×Ö·û¿ÉÒÔ°üº¬×Öĸ¡¢Êý×Ö¡¢Ï»®ÏߺÍÃÀÔª·ûºÅ¡£±êʶ·û¶Ô´óСдÃô¸Ð£¬µ«Ã»Ó㤶ÈÏÞÖÆ£¬¹Ø¼ü×Ö²»ÄÜ×÷Ϊ±êʶ·û£»²»ÄÜÒÔÊý×Ö¿ªÍ·£»²»ÄÜÒÔÊý×Ö×÷Ϊ±êʶ·û£»ONE-HUNDRED£¨ºÏ·¨£©Ê¹ÓÃÁËÁ¬½ÓÏߣ¬¶øONE_HUNDRED£¨·Ç·¨£©Ê¹ÓÃÁËÏ»®Ïß¡£
±êʶ·ûµÄÃüÃûÔ¼¶¨£º
£¨1£©³£Á¿Óôóд×Öĸ£¬Ï»®Ïß³£ÓÃÓÚ³£Á¿Ãûµ¥´Ê·Ö¸ô£¬ÒòΪ³£Á¿ÃûÒ»°ãÒÔ´óд×Öĸµ¥´ÊÃüÃû¡£
£¨2£©±äÁ¿ÓÃСд×Öĸ¿ªÊ¼£¬Èç¹ûÒ»¸ö±äÁ¿ÃûÓŶà¸öµ¥´Ê¹¹³É£¬µÚÒ»¸öµ¥´ÊºóÃæµÄµ¥´ÊÒÔ´óд×Öĸ¿ªÊ¼£¬ÀýÈçanInt¡£
£¨3£©ÀàÒÔ´óд×Öĸ¿ªÊ¼¡£È磺My Class.
£¨4£©JavaÑϸñÇø·Ö×Öĸ´óСд£¬±êʶ·ûÖеĴóСд×Öĸ±»ÈÏΪÊDz»Í¬µÄÁ½¸ö×Ö·û¡£ÀýÈçad¡¢aD¡¢AdºÍDaÊÇ4¸ö²»Í¬µÄºÏ·¨±êʶ·û¡£
¹Ø¼ü×Ö£º¹Ø¼ü×ÖÊÇJavaÓïÑÔ×ÔÉíʹÓõıêʶ·û£¬ËüÓÐÆäÌض¨µÄÓï·¨º¬Ò壬È磺public±íʾ¹«Óеģ¬staticΪ¾²Ì¬µÄ£¬ËùÒÔJava¹Ø¼ü×Ö²»ÄÜÓÃ×ö±êʶ·û£¬Èçfor¡¢while¡¢booleanµÈ¶¼ÊÇJavaÓïÑԵĹؼü×Ö¡£
&nbs
Ïà¹ØÎĵµ£º
For Ubuntu 10.04 LTS, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. It is recommended that you use openjdk-6 instead.
If you can not switch from the proprietary Sun JDK/JRE to OpenJDK, you can install sun-java6 packages from the Canonical Partner Reposi ......
Ó¢ÎÄÔÎĵØÖ·:
http://www.onjava.com/pub/a/onjava/2005/07/06/generics.html
ÖÐÎĵØÖ·:
http://www.matrix.org.cn/resource/article/43/43634_java_generics.html
¹Ø¼ü´Ê£º java generics java5
ÕªÒª
·ºÐÍÊÇJ2SE 5.0×îÖØÒªµÄÌØÐÔ¡£ËûÃÇÈÃÄãдһ¸ötype(Àà»ò½Ó¿Ú£©ºÍ´´½¨Ò»¸ö ......
һЩÎÞÁĵĴúÂëÖ®Ò»£ºJAVAÖеÄÈÕÆÚ¼ÆËã
/*
* DateCalculate.java , Created on 2005-3-18
* Copyright 2005 AAA Information Technology CO.LTD. All rights reserved.
*
* ×÷³ÉÈÕÆÚ: 2005-3-18
* ÐÞ¸ÄÂÄÀú:
*
*/
package com.bjb.xyh.util;
import java.text.DecimalFormat;
//import java.text.Pars ......
-------------------------------oracle--------------------------------
Çý¶¯£ºoracle.jdbc.driver.OracleDriver
URL£ºjdbc:oracle:thin:@<machine_name><:port>:dbname
×¢£ºmachine_name£ºÊý¾Ý¿âËùÔڵĻúÆ÷µÄÃû³Æ£»
port£º¶Ë¿ÚºÅ£¬Ä¬ÈÏÊÇ1521
&nbs ......
Ò»¡¢windowsÏ¿ª·¢»·¾³µÄ´î½¨
1¡¢´Óhttp://java.sun.com/ÉÏÏÂÔØwindowsƽ̨µÄJDK,²¢°²×°¡£¼ÙÉ谲װĿ¼Ϊ£ºC:\jdk6.0
2¡¢É趨Ïà¹Ø»·¾³Á¿£¨ÒÔwindowsXP)Àý£º
1¡¢ÓÒ»÷×ÀÃæÉÏ“ÎҵĵçÄÔ”£¬Ñ¡ÔñÊôÐÔ
2¡¢ÔÙÑ¡Ôñ“¸ß¼¶”»îÒ ......