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

JavaÖеÄÖµ´«µÝÓëÒýÓô«µÝ


Ò».Á½¸ö¸ÅÄî
ʵ¼Ê²ÎÊý(ʵ²Î):·½·¨µ÷ÓÃʱ±»´«ÈëµÄ²ÎÊý
ÐβÎ:·½·¨¶¨ÒåʱÉùÃ÷µÄ²ÎÊý
¶þ.ÈýÖÖ´«µÝ·½Ê½
1.»ù±¾Êý¾ÝÀàÐ͵ÄÖµ´«µÝ:
public static void main(String []args)
 {
  int i=10,j=5;
  tValue(i,j);
  System.out.println("i:"+i+"j:"+j);//´òÓ¡½á¹û:i=10,j=5
 }
 public static void tValue(int x,int y)
 {
  x+=y;
  y=x;
 }
×Ü½á£ºÉæ¼°µ½»ù±¾Êý¾ÝÀàÐ͵Ĵ«µÝʱ£¬ÐβνÓÊܵÄÊÇʵ²ÎµÄÖµ¸±±¾¡£ËùÒÔ²»Äܸıäʵ²ÎµÄÖµ
2.¸´ºÏÀàÐ͵ÄÒýÓô«µÝ
void method1() {
¡¡¡¡2 StringBuffer x = new StringBuffer("Hello");
¡¡¡¡3 change1(x);
¡¡¡¡4 System.out.println(x);
¡¡¡¡5 }
¡¡¡¡6
¡¡¡¡7 void method2() {
¡¡¡¡8 StringBuffer x = new StringBuffer("Hello");
¡¡¡¡9 change2(x);
¡¡¡¡10 System.out.println(x);
¡¡¡¡11 }
¡¡¡¡12
¡¡¡¡13 void change1(StringBuffer sb) {
¡¡¡¡14 sb.append(" world!");
¡¡¡¡15 }
¡¡¡¡16
¡¡¡¡17 void change2(StringBuffer sb) {
¡¡¡¡18 sb = new StringBuffer("hi");
¡¡¡¡19 sb.append(" world!");
¡¡¡¡20 }
Õë¶ÔÒÔÉÏ´úÂ룬×ܽá2Ìõ£º1.¶ÔÓÚÀàµÄʵÀýËü´«µÝµÄÊÇÀàµÄÒýÓá£ÐèҪעÒâµÄÊÇ£¬ÕâÌõ¹æÔòÖ»ÊÊÓÃÓÚ²ÎÊý´«µÝ
2.¶ÔÓÚº¯Êýµ÷Óã¬×îÖÕЧ¹ûÊÇʲôÍêÈ«¿´º¯ÊýÄÚ²¿µÄʵÏÖ¡£Èç18ÐдúÂë
Èý¡£¸´ºÏÀàÐ͵ÄÖÐStringµÄÌØÊâÒýÓô«µÝ
public  class Example{
String str=new String("good");
char [] ch=;
public static void main(String args[]){
Example ex=new Example();
ex.change(ex.str,ex.ch);
System.out.print(ex.str+"and");
System.out.print(ex.ch);
}
public void change(String str2,char ch[]){
str="testok";
ch[0]='g';
System.out.print(str);
}
}strµÄ´«µÝÓëÖµ´«µÝÏàËÆ


Ïà¹ØÎĵµ£º

Java SwingÖеÄJTreeÄ£ÐÍ

Java SwingÖеÄJTreeÄ£ÐÍ
2009-01-04 10:40
±¾ÎĽéÉÜJava SwingÖеÄJTreeÄ£ÐÍ£¬½éÉÜÈçºÎ´´½¨¡¢Ð޸ġ¢±éÀú£¬ÉèÖÃÊ÷¡£²Î¿¼Core Java2Ïà¹ØÕ½ڼ°ÆäÔ´´úÂë¡£
SwingÊ÷ʹÓÃÈËÃÇËùÊìϤµÄÎļþ¼ÐºÍÊ÷ҶͼÀ´ÏÔʾ·Ö²ãµÄÊý¾Ý¡£Ê÷Óɽڵã×é³É£¬½Úµã¿ÉÒÔÊÇÎļþ¼Ð£¬Ò²¿ÉÒÔÊÇÊ÷Ò¶¡£Îļþ¼Ð¿ÉÒÔÓÐ×ӽڵ㣬³ý¸ù½ÚµãÖ®ÍâµÄËùÓнڵ㶼ֻÓÐÒ»¸ö¸ ......

java¶ÁÈ¡xmlÎļþµÄËÄÖÖ·½·¨

xmlÎļþ£º
Xml´úÂë
<?xml version="1.0" encoding="GB2312"?>  
<RESULT>  
 <VALUE>¡¡¡¡   
  <NO>A1234</NO>¡¡¡¡   
  <ADDR>ºÓÄÏʡ֣ÖÝÊÐ</ADDR>  
 </VALUE>&nbs ......

javaÖеõ½µ±Ç°Â·¾¶µÄ·½·¨


¹éÄÉÒ»Ð©ÍøÉÏÈ¡JAVA·¾¶µÄ·½·¨£º
×¢Ã÷£ºÈç¹û´ÓANTÆô¶¯³ÌÐò£¬this.getClass().getResource("")È¡³öÀ´µÄ±È½Ï¹Ö£¬Ö±½ÓÓÃJAVAÃüÁîÐе÷ÊԾͿɳɹ¦¡£
µÃµ½classpathºÍµ±Ç°ÀàµÄ¾ø¶Ô·¾¶µÄһЩ·½·¨
»ñµÃCLASSPATHÖ®Íâ·¾¶µÄ·½·¨£º
URL base = this.getClass£¨£©.getResource£¨""£©£» //ÏÈ»ñµÃ±¾ÀàµÄËùÔÚλÖã¬Èç/home/popeye/ ......

JAVA²Ù×÷windows¹²ÏíĿ¼

1 Ïà¹ØÖªÊ¶½éÉÜ
1.1 SMB
      MicrosoftÍøÂçÅäÖÃÖÐÖ÷Òª²ÉÓÃSMBÐÎʽʵÏÖÎļþ¹²ÏíºÍ´òÓ¡·þÎñ£¬SMB£¨·þÎñÆ÷ÏûÏ¢¿é£©ÊÇÒ»ÖÖ¿Í»§¶Ë/·þÎñÆ÷Îļþ¹²ÏíЭÒé¡£IBMÓÚ20ÊÀ¼Í80Äê´úÄ©ÆÚ¿ª·¢ÁË·þÎñÆ÷ÐÅÏ¢¿é£¨SMB£©£¬ÓÃÓڹ淶¹²ÏíÍøÂç×ÊÔ´£¨ÈçĿ¼¡¢Îļþ¡¢´òÓ¡»úÒÔ¼°´®Ðж˿ڣ©µÄ½á¹¹¡£ÕâÊÇÒ»ÖÖÇëÇó/ÏìӦЭÒé¡£ÓëFT ......

¹ØÓÚJavaÖÐ×Ô¶¨Òå°üµÄ´´½¨

ÎÒÔÚѧϰthinking in Java4 µÄʱºò£¬ÔÚ´´½¨×Ô¶¨Òå°üµÄʱºò£¬Åöµ½Á˺ܶà´íÎó£¬ÈÃÎÒÓôÃÆÁ˼¸Ì죬ͨ¹ýÔÚÍøÉϵÄ×ÊÁÏËÑË÷£¬°Ñ°üµÄ´´½¨¹ý³Ì¸ø´ó¼ÒÏêϸÁгöÀ´¡£
ÎÒÃÇÒÔthinking in Java4ÖеÄÀý×ÓΪÀý
´´½¨Á½¸öÀàVectorºÍList¡£½«±àÒëºóµÄVector.classºÍList.classÎļþ·ÅÔÚ°ünet.mindview.simpleÏÂ(¸Ã°üλÓÚc:\DOC\JavaT).
//Vec ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ