javaÊý¾ÝÀàÐÍ´«µÝ̽Ë÷
ѧϰjavaÒ²ÓÐһЩʱ¼äÁË£¬µ«ÊǶÔjavaÀïµÄÊý¾ÝÀàÐÍ´«µÝ·½·¨»¹ÊDz»ÉõÁ˽â
ÒÔÏÂÊÇÎÒÔÚjre1.6.0_04 ÔËÐл·¾³ É϶Ôjava Êý¾ÝÄÚÐÍ´«µÝ·½Ê½µÄ̽Ë÷
¸Ð¾õÊÕ»ñ»¹ÊDZ˶࣬ÒòΪ³öÏÖÁËÎÒÓöÁÏÖ®ÍâµÄ½á¹û¡£
Ò»¡¢»ù±¾Êý¾ÝÀàÐÍ£º
»ù±¾ÀàÐÍΪֵ´«µÝ£¬»ù±¾ÀàÐÍÖеÄÊý×éΪÒýÓô«µÝ£»
̽Ë÷´úÂëÈçÏ£º
package cn.cn;
public class Ttest2 {
public void change() {
int a = 45;
int b = 12; //³õʼ»¯
System.out.println(a + " " + b); //³õʼ»¯ºóÊä³ö
a = b; //b¸³¸øa
a = 534;//¶ÔaÖØи³Öµ
System.out.println(a + " " + b);// ²Ù×÷ºóÔÙÊä³ö
}
public static void main(String args[]) { //Ö÷º¯Êý
Ttest2 tt = new Ttest2();
tt.change();
}
}
Êä³ö½á¹ûΪ£º 45 12
543 12£» ½áÂÛ£º»ù±¾ÀàÐÍΪֵ´«µÝ
package cn.cn;
public class Ttest2 {
public void change() {
int a[]=new int [2];
int b[]=new int [2]; //´´½¨Êý×é a ,b
for(int i=0;i<2;i++){//³õʼ»¯Êý×éa
a[i]=6;
}
for(int j=0;j<2;j++){//³õʼ»¯Êý×éb
b[j]=10;
}
for(int k=0;k<2;k++){//³õʼ»¯ºóÊä³ö
System.out.println("a["+k+"]:"+a[k] + " " +"b["+k+"]:"+b[k]);
}
a=b; //¶ÔÊý×é²Ù×÷
for(int m=0;m<2;m++){
System.out.println("a["+m+"]:"+a[m] + " " +"b["+m+"]:"+b[m]);//²Ù×÷ºóÊä³ö
}
for(int n=0;n<2;n++){ //¸Ä±äaÀïÃæµÄÖµ
a[n]=989;
}
for(int m=0;m<2;m++){ //¸Ä±äaÀïµÄÖµºóÔÙÊä³ö
&
Ïà¹ØÎĵµ£º
×÷ΪJava³ÌÐòÔ±À´Ëµ£¬×îÍ´¿àµÄÊÂÇéĪ¹ýÓÚ¿ÉÒÔÑ¡ÔñµÄ·¶Î§Ì«¹ã£¬¿ÉÒÔ¶ÁµÄÊéÌ«¶à£¬ÍùÍùÈÝÒ×ÎÞËùÊÊ´Ó¡£ÎÒÏë¾ÍÎÒ×Ô¼º¶Á¹ýµÄ¼¼ÊõÊé¼®ÖÐÌôÑ¡³öÀ´Ò»Ð©£¬°´ÕÕѧϰµÄÏȺó˳Ðò£¬ÍƼö¸ø´ó¼Ò£¬ÌرðÊÇÄÇЩÏë²»¶ÏÌá¸ß×Ô¼º¼¼ÊõˮƽµÄJava³ÌÐòÔ±ÃÇ¡£
Ò»¡¢Java±à³ÌÈëÃÅÀà
¶ÔÓÚûÓÐJava±à³Ì¾ÑéµÄ³ÌÐòÔ±ÒªÈëÃÅ£¬Ëæ±ã¶ÁʲôÈëÃÅÊé¼®¶¼Ò»Ñù£¬Õâ ......
±¾ÎÄÄÚÈÝÕª×Ô£º¡¶Java Web¿ª·¢½Ì³Ì——ÈëÃÅÓëÌá¸ßƪ£¨JSP+Servlet£©¡·
AJAXÊÇAsynchronous JavaScript and XMLµÄËõд£¬Éæ¼°JavaScript½Å±¾¡¢XHTMLºÍCSS¡¢DOM¡¢XMLºÍXSTLµÈ¼¼Êõ¡£
l XHTMLÓëCSSʵÏÖÊý¾ÝÐÅÏ¢µÄͳһ»¯ºÍ±ê×¼»¯ÏÔʾ£»
l & ......
ת×Ô:
JSON ¼´ JavaScript Object Natation£¬ËüÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ£¬·Ç³£ÊʺÏÓÚ·þÎñÆ÷Óë JavaScript µÄ½»»¥¡£±¾ÎĽ«¿ìËÙ½²½â JSON ¸ñʽ£¬²¢Í¨¹ý´úÂëʾÀýÑÝʾÈçºÎ·Ö±ðÔÚ¿Í»§¶ËºÍ·þÎñÆ÷¶Ë½øÐÐ JSON ¸ñʽÊý¾ÝµÄ´¦Àí¡£
¡¡¡¡Json±ØÐèµÄ°ü
¡¡¡¡commons-httpclient-3.1.jar
¡¡¡¡commons-lang-2.4.jar
¡¡¡¡commons-l ......
package test;
import java.io.File;
import org.jivesoftware.smack.Chat;
import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.MessageListener;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack ......
´ó¼Ò¶¼ÖªµÀJAVAÖÐʹÓÃOBJECT×÷ΪΨһµÄ»ùÀà¡£µ«ÊÇJAVAµÄÉè¼ÆÕßΪʲôҪÕâÑù×öÄØ£¿ÖضÁ¡¶TTHINKING IN JAVA¡·£¬µÃ³öÒÔÏÂÔÒò£º
1£¬JAVAÊÇ´¿ÃæÏò¶ÔÏóµÄÓïÑÔ¡£µ¥¼Ì³ÐÌåϵ±£Ö¤ÁËËùÓÐн¨µÄ»òJDKÖÐÒÑÓеÄÀ඼±ØÐë¼Ì³Ð×ÔOBJECT¡£ÕâÑù£¬±£Ö¤ÁËËùÓеÄÀ඼¾ßÓÐһЩ»ù±¾µÄ·½·¨¡£ÀýÈçÒ»¸öString¶ÔÏóÓÐtoString()·½·¨£¬ÁíÍâÒ»¸öMath¶ÔÏ ......