Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaС¼¼ÇÉ£¨Ò»£©

ÔںܶàÊý¾Ý¿âÖУ¬“ÐÔ±ð”ÕâÒ»×Ö¶ÎÊÇÓÃÓÚintÀàÐÍ´æ´¢µÄ£¬ÈçÓÃ0±íʾ“Å®”£¬1±íʾ“ÄД¡£Ê¹ÓÃResultSet¶ÔÏórs½ÓÊÕ²éѯÊý¾Ý£¬ÔÚ»ñÈ¡Êý¾Ýʱʱ£¬rs.getString()·½·¨ºÍrs.getInt()·½·¨»ñÈ¡µÄÈÔÈ»ÊÇ0(Çø±ðÔÚÓÚStringÀàÐÍ»òÊÇintÀàÐÍ)¡£¶øÔÚʵ¼ÊÓ¦ÓÃʱ£¬ÎÒÃǸüÏ£Íû»ñµÃµÄÊý¾ÝÊÇÖ±¹ÛµØÏÔʾ“ÄД»ò“Å®”£¬ÓÐûÓÐʲô°ì·¨ÄØ£¿
ÓÐÈËÁ¢¿ÌÏë³ö£ºÊ¹ÓÃif-elseÓï¾ä¿ØÖÆ£¬»òÕßʹÓÃÈýÔªÔËËã·û¸³Öµ°¡£¡¿ÉÎÊÌâÓÖ³öÏÖÁË£¬ÕâÑù×öµÄ»°ÎÒÃÇÐèÒª¶¨ÒåÒ»¸ö¶îÍâµÄ±äÁ¿£¬¶øÇÒ¼ÙÈçÎÒÃÇÓжà¸öJSPÒ³ÃæÐèÒªÏÔʾÐÔ±ðµÄʱºòÒª¶àдºÜ¶à¶«Î÷¡£ÄѵÀ¶¨Òå³ÉÒ»¸ö·½·¨£¬Ã¿¸öÒ³Ã涼µ÷Ó÷½·¨ÔÙת»»Âð£¿My God£¡
»¹ÊÇ¿´¿´ÏÂÃæµÄ·½·¨°É¡£
ÔÚʵÌåÀàÖж¨Òå˽ÓÐÊôÐÔ²¢·â×°£º
ĬÈÏ·½·¨£º
package test;
public class User {
private int sex;
public int getSex() {
return sex;
}
public void setSex(int sex) {
this.sex= sex;
}
}

»¹ÊǸÄΪÏÂÃæµÄ·½·¨°É£º
package test;
public class User {
private int sex;
public String getSex() {
if(sex==0){
return "Å®";
}else{
return "ÄÐ";
}
}
public void setSex(int sex) {
this.sex = sex;
}
}
´ó¼ÒÓ¦¸Ã¶¼¿´Ã÷°×ÁË£¬Ö»Êǽ«sexµÄgetSex()·½·¨µÄ·µ»ØÀàÐ͸ÄΪStringÀàÐÍ£¬²¢ÇÒÔÚ·½·¨ÖÐ×öÁ˼òµ¥µÄ¸³Öµ£¬ÎÒÃǵÄÄ¿µÄ¾ÍʵÏÖÁË£¡
×ö¸ö¼òµ¥µÄ²âÊÔ°É£º
package test;
public class Test {
public static void main(String[] args) {
User user=new User();
user.setSex(0);
System.out.println(user.getSex());
}
}
Êä³ö½á¹û¾ÍÊÇ“Å®”À²£¬Èç¹ûsetSex(1)µÄ»°£¬Êä³ö×ÔÈ»ÊÇ“ÄД¿©£¡
µ±È»£¬ÎªÁ˳ÌÐòµÄÑÏÃÜÐÔ£¬»¹ÊÇÓ¦¸Ã½«·½·¨Ð´µÄ¸üϸÖÂһЩ£º
package test;
public class User {
     private int sex;
     public String getSex() {
          if(sex==0){
                return "Å®";
          }else if(sex==1){
               ret


Ïà¹ØÎĵµ£º

¹ØÓÚjavaµÄclasspathÉèÖÃ

½ñÌìÍíÉÏʵÑéÊÒµÄÁíÒ»¸öÈËÔÚ±àÒëÒ»¸öjava³ÌÐò£¬ÐèÒªÓõ½Ò»¸öjarÎļþ£¬ËùÒÔÔÚÃüÁîÐбàÒëµÄʱºòÐèÒªÌí¼ÓjarµÄ·¾¶£¬ÀýÈ磺
java -classpath demo.jar hello
µ«ÊÇÉèÖÃÁËpathÖ®ºójava¾Í²»»áËÑË÷µ±Ç°Ä¿Â¼£¬Ò²¾ÍÊÇËùÈç¹ûhelloÔÚµ±Ç°Ä¿Â¼µÄ×ÓĿ¼£¬±ÈÈçtestÏÂÃ棬±àÒë»áÌáʾÕÒ²»µ½hello,
ÕâʱºòÐèÒªÐÞ¸ÄΪ
java -classpath .;d ......

Java¿ªÔ´IDE

 Java Tools 
      Java ToolsÊÇÒ»¸öÇáÁ¿¼¶IDE£¬ÓÃÓÚ´´½¨¡¢±àÒë¡¢Ö´ÐС¢µ÷ÊÔJavaÓ¦ÓóÌÐòÓëapplets¡£Ëü»¹ÄÚÖÃÒ»¸öÎı¾±à¼­Æ÷ºÍÒ»¸öÓµÓÐÓû§²Ù
     ×÷½çÃæµÄJavaµ÷ÊÔÆ÷¡£ËüÒ×ÓÚʹÓÃÌرðÊʺÏÓÚJava³õѧÕß¡£
Eclipse 
   Eclipseƽ̨ÊÇIBMÏò¿ª·¢ ......

»ùÓÚjavaµÄ¿ªÔ´ÓÎÏ·ÒýÇæ

http://looframework.sourceforge.net/
http://robocode.sourceforge.net/
JAVA is DOOMED(JID)ÊÇÒ»¸öÀûÓÃJavaʵÏֵĿªÔ´3DÒýÇæ²¢ÇÒʹÓÃOpenGL×÷ΪͼÐÎAPI.
¿ª·¢ÓïÑÔ£º Java

ÏîÄ¿Ö÷Ò³£º http://javaisdoomed.sourceforge.net/
ÎĵµµØÖ·£º
ÏÂÔصØÖ·£º https://sourceforge.net/projects/javaisdoomed/
JMine ÊÇÒ» ......

PHPºÍJAVA¿ª·¢µÄOAÐÔÄܱȽÏ

ÏÖÔÚ»¹ÓкܶàÈ˸㲻¶®PHPºÍJAVA¿ª·¢µÄЭͬOAµ½µ×ÓÐʲô²»Í¬£¬¶Ô×Ô¼ºµ½µ×ÓÐʲôӰÏ죬ÒÔÖÁÓÚ×ö³öÁË´íÎóµÄÑ¡Ôñ¶øêݺ¦ÎÞÇî¡£±ÊÕ߸ù¾ÝÁ½ÖÖ¼¼ÊõµÄÌصãÖØÐÂÕûÀíÁËÒ»¸ö¶Ô±È£¬¸ø¹ØÐÄЭͬOA¼¼ÊõµÄ¶ÁÕß×ö¸ö²Î¿¼¡£
         »ªÌ춯Á¦Ð­Í¬OAÊDzÉÓÃJAVA¼¼ÊõµÄµäÐÍ´ú±í£¬²¢¾ßÓÐһϵÁÐÓÅ»¯É ......

´ÓÓïÑÔÉý¼¶ÎªÆ½Ì¨£ºJAVAÀÏÒÓ£¬ÉÐÄÜ·¹·ñ£¿

JavaÔ´ÓÚ1991ÄêµÄÒ»¸ö»ú¶¥ºÐÏîÄ¿£¬²¢ÓÉSunÔÚ1995Äê·¢²¼ÁË1.0°æ±¾£¬µ½½ñÌìËãÏÂÀ´£¬Ò²ÒªÓÐ20ÄêµÄʱ¼äÁË¡£JDK1.3-->JDK1.4-->JDK5ÕâÁ½´Î°æ±¾Éý¼¶£¬Ê¹µÃjavaÓïÑԵõ½Á˼«´óµÄÍêÉÆ£¬µ«´ËºóµÄJDK6ºÍÉÐδÕýʽ·¢²¼µÄJDK7£¬²¢Î´¸øÈËÌ«¶àµÄ¾ªÏ²£¬ÖÁÉÙÎÒÊÇÕâÖָоõ¡£Æäʵ´Ó×î½ü¼¸ÄêJVM¼æÈÝÓïÑԵİٻ¨Æë·Å¾Í¿ÉÒÔ¿´³öÀ´¶ËÄߣºJAVAÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ