javaÓÅ»¯Õ¼ÓÃÄÚ´æµÄ·½·¨(Ò»)
java×öµÄϵͳ¸øÈ˵ÄÓ¡ÏóÊÇʲô£¿Õ¼Äڴ棡˵µÀÕâ¾ä»°¾Í»áÓÐN¶àÈËÕ¾³öÀ´Îªjava±ç»¤£¬²¢¾Ù³öÒ»¶ÑµÄÐÔÄܲâÊÔ±¨¸æÀ´Ö¤Ã÷ÕâÒ»µã¡£Æäʵ´ÓÀíÂÛÉÏÀ´½²java×öµÄϵͳ²¢²»±ÈÆäËûÓïÑÔ¿ª·¢³öÀ´µÄϵͳ¸üÕ¼ÓÃÄڴ棬ÄÇôΪʲôȴÓÐÕâôN¶àÀíÓÉÀ´Ö¤Ã÷ËüȷʵռÄÚ´æÄØ£¿Á½¸ö×Ö£¬ÂªÏ°¡£
£¨1£©±ðÓÃnew Boolean()¡£
Ôںܶೡ¾°ÖÐBooleanÀàÐÍÊDZØÐëµÄ£¬±ÈÈçJDBCÖÐbooleanÀàÐ͵ÄsetÓëget¶¼ÊÇͨ¹ýBoolean·â×°´«µÝµÄ£¬´ó²¿·ÖORMÒ²ÊÇÓÃBooleanÀ´·â×°booleanÀàÐ͵ģ¬±ÈÈ磺
ps.setBoolean("isClosed",new Boolean(true));
ps.setBoolean("isClosed",new Boolean(isClosed));
ps.setBoolean("isClosed",new Boolean(i==3));
ͨ³£ÕâЩϵͳÖй¹ÔìµÄBooleanʵÀýµÄ¸öÊýÊÇÏ൱¶àµÄ£¬ËùÒÔϵͳÖгäÂúÁË´óÁ¿BooleanʵÀýС¶ÔÏó£¬ÕâÊÇÏ൱ÏûºÄÄÚ´æµÄ¡£BooleanÀàʵ¼ÊÉÏÖ»ÒªÁ½¸öʵÀý¾Í¹»ÁË£¬Ò»¸ötrueµÄʵÀý£¬Ò»¸öfalseµÄʵÀý¡£
BooleanÀàÌṩÁ½Á˸ö¾²Ì¬±äÁ¿£º
public static final Boolean TRUE = new Boolean(true);
public static final Boolean FALSE = new Boolean(false);
ÐèÒªµÄʱºòֻҪȡÕâÁ½¸ö±äÁ¿¾Í¿ÉÒÔÁË£¬
±ÈÈ磺
ps.setBoolean("isClosed",Boolean.TRUE);
ÄÇôÏó2¡¢3¾äÄÇÑùÒª¸ù¾ÝÒ»¸öboolean±äÁ¿À´´´½¨Ò»¸öBooleanÔõô°ìÄØ?¿ÉÒÔʹÓÃBooleanÌṩµÄ¾²Ì¬·½·¨£º Boolean.valueOf£¨£©
±ÈÈ磺
ps.setBoolean("isClosed",Boolean.valueOf(isClosed));
ps.setBoolean("isClosed",Boolean.valueOf(i==3));
ÒòΪvalueOfµÄÄÚ²¿ÊµÏÖÊÇ£ºreturn (b ? TRUE : FALSE);
ËùÒÔ¿ÉÒÔ½ÚÊ¡´óÁ¿ÄÚ´æ¡£ÏàÐÅÈç¹ûJava¹æ·¶Ö±½Ó°ÑBooleanµÄ¹¹Ô캯Êý¹æ¶¨³Éprivate£¬¾ÍÔÙÒ²²»»á³öÏÖÕâÖÖÇé¿öÁË¡£
£¨2£©±ðÓÃnew Integer¡£
ºÍBooleanÀàËÆ£¬java¿ª·¢ÖÐʹÓÃInteger·â×°intµÄ³¡ºÏÒ²·Ç³£¶à£¬²¢ÇÒͨ³£ÓÃint±íʾµÄÊýֵͨ³£¶¼·Ç³£Ð¡¡£SUN SDKÖжÔIntegerµÄʵÀý»¯½øÐÐÁËÓÅ»¯,IntegerÀ໺´æÁË-128µ½127Õâ256¸ö״̬µÄInteger£¬Èç¹ûʹÓÃInteger.valueOf(int i)£¬´«ÈëµÄint·¶Î§ÕýºÃÔÚ´ËÄÚ£¬¾Í·µ»Ø¾²Ì¬ÊµÀý¡£ÕâÑùÈç¹ûÎÒÃÇʹÓÃInteger.valueOf´úÌænew IntegerµÄ»°Ò²½«´ó´ó½µµÍÄÚ´æµÄÕ¼Óá£Èç¹ûÄúµÄϵͳҪÔÚ²»Í¬µÄSDK£¨±ÈÈçIBM SDK£©ÖÐʹÓõĻ°£¬ÄÇô¿ÉÒÔ×Ô¼º×öÁ˹¤¾ßÀà·âװһϣ¬±ÈÈçIntegerUtils.valueOf(),ÕâÑù¾Í¿ÉÒÔÔÚÈκÎSDKÖж¼¿ÉÒÔʹÓÃÕâÖÖÌØÐÔ¡£
£¨3£©ÓÃStringBuffer´úÌæ×Ö·û´®Ïà¼Ó¡£Õâ¸öÎҾͲ»¶à½²ÁË£¬ÒòΪÒѾ±»È˽²¹ýN´ÎÁË¡£ÎÒÖ»Ï뽫һ¸ö²»ÊÇЦ»°µÄЦ»°£¬ÎÒÔÚ¿´¹úÄÚij“ÖøÃû”java¿ª·¢µÄWEB
Ïà¹ØÎĵµ£º
JavaµÄºËÐÄAPIÊǷdz£ÅÓ´óµÄ,Õâ¸ø¿ª·¢ÕßÀ´Ëµ´øÀ´Á˺ܴóµÄ·½±ã£¬¾³£ÈËÓÐÆÀÂÛ,javaÈóÌÐòÔ±±äɵ¡£
µ«ÊÇһЩÄÚÈÝÎÒÈÏΪÊDZØÐëÕÆÎյģ¬·ñÔò²»¿ÉÒÔÊìÁ·ÔËÓÃjava£¬Ò²²»»áʹÓþͺÜÄÑ°ìÁË¡£
1¡¢java.lang°üϵÄ80£¥ÒÔÉϵÄÀàµÄ¹¦ÄܵÄÁé»îÔËÓá£
2¡¢java.util°üϵÄ80£¥ÒÔÉϵÄÀàµÄÁé»îÔËÓã¬ÌرðÊǼ¯ºÏÀàÌåϵ¡¢Õý¹æ±í´ïʽ¡¢Ê±¼ä¡ ......
package com.whlongyi.sys.blob.bean;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
im ......
ϸ½ÚÉÏÐèÒª¸Ä½ø¡£
import java.util.*;
public class Map {
Vector<int[]> v = new Vector<int[]>();
Vector<Integer> vv = new Vector<Integer>();
Map() {
int[] array = { 1, 2, 3, 4, 5 };
Scanner s = new Scanner(System.in);
int x = s.nextInt();
pro(array, 0, x);
for(int i=0 ......
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Random;
import javax.imageio.ImageIO;
import javax.servlet.ServletException;
import javax.servlet.ServletOutpu ......
Ò»¡¢±³¾°
1¡¢µ±ÎÒÃǵÚÒ»´Î½Ó´¥Ä³¶Î´úÂ룬µ«ÓÖ±»ÒªÇóÔÚ¼«¶ÌµÄʱ¼äÄÚÓÐЧµØ·ÖÎöÕâ¶Î´úÂ룬ÎÒÃÇÐèҪʲôÑùµÄ×¢ÊÍÐÅÏ¢£¿
2¡¢ÔõôÑù±ÜÃâÎÒÃǵÄ×¢ÊÍÈß³¤¶øÇÒÁèÂÒ²»¿°ÄØ£¿
3¡¢ÔÚ¶àÈËÐͬ¿ª·¢¡¢Î¬»¤µÄ½ñÌ죬ÎÒÃÇÐèÒªÔõôÑùµÄ×¢ÊÍÀ´±£Ö¤¸ßÖÊ¡¢¸ß½»µÄ½øÐпª·¢ºÍά»¤¹¤×÷ÄØ£¿
¶þ¡¢ÒâÒå
³ÌÐòÖеÄ×¢ÊÍÊdzÌÐòÉè¼ÆÕßÓë³ÌÐòÔĶÁÕß ......