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

JavaÊý×éµÄ¸´ÖÆ£¨¶ÔÏóÊý×飩

ÏÈ¿´¿´ÏÂÃæµÄ´úÂ룬´ó¼Ò²Â²ÂÊä³öÊÇʲô
package com.captain.test;
public class ArrayTest {
public static void main(String[] args){
//н¨Ò»¸ö¶ÔÏó£¨OneNum£©Êý×飨¸³ÖµÎª5¡¢3¡¢4£©
OneNum[] ac = {new OneNum(5),new OneNum(3),new OneNum(4)};
//н¨Ò»¸öÓëacͬ³¤¶ÈµÄ¶ÔÏó£¨OneNum£©Êý×é
OneNum[] newac = new OneNum[ac.length];

//½«acÖеĶÔÏ󸶸øÐÂÊý×éÖУ¨newac£©
for (int i = 0;i<ac.length;i++){
newac[i] = ac[i];
System.out.print(ac[i].value+";");
}
System.out.println();

//½«ÐÂÊý×éµÄµÚÒ»¸öÔªËصÄÖµ¸ÄΪ10
newac[0].value = 10;
//ÏÔʾԭÊý×飨ac£©µÄµÚÒ»¸öÔªËصÄÖµ
System.out.print(ac[0].value);
}
}
class OneNum {
public int value;
public OneNum(int i) {
this.value = i;
}
}
Êä³öΪ£º
5;3;4;
10
¿É¼û£¬ÐÂÊý×éÆäʵҲÊǶÔÔ­Êý×é¶ÔÏóµÄÐ޸ģ¬Ò²¾ÍÊÇ˵ÐÂÊý×éÖеĶÔÏóÊÇÔ­Êý×é¶ÔÏóµÄÒýÓã¬Á½¸öÊý×éÖеĶÔÏóÊÇÏàͬµÄ¡£


Ïà¹ØÎĵµ£º

javaËÄÉáÎåÈëBigDecimal

javaËÄÉáÎåÈë
package Test;
import java.math.BigDecimal; //ÒýÈëÕâ¸ö°ü
public class Test {
  public static void main(String[] args) {
   double i = 3.856;
   // ÉáµôСÊýÈ¡Õû
   System.out.println("ÉáµôСÊýÈ¡Õû:Math.floor(3.856)=" + (int) Math.floor(i));
......

´Ójava³ÌÐòÖе÷ÓÃÆäËü³ÌÐò

RMI (Remote Method Invocation£¬Ô¶³Ì·½·¨µ÷ÓÃ)ÈçºÎÓÃÓÚ³ÌÐò¼äͨѶ£¬ÁíÒ»¸öÓÃÓÚͨѶµÄ¼¼ÊõÊÇRuntime.exec() ·½·¨¡£Äã¿ÉÒÔÓÃÕâ¸ö·½·¨´ÓÒ»¸öÔËÐа¢java³ÌÐòÖе÷ÓÃÁíÒ»¸ö³ÌÐò¡£Runtime.exec Ò²ÔÊÐíÄãÖ´ÐкͳÌÐòÏà¹ØµÄ²Ù×÷£¬ÀýÈç¿ØÖƳÌÐòµÄ±ê×¼ÊäÈëÊä³ö£¬µÈ´ý³ÌÐòµÄ½áÊø²¢µÃµ½ËüµÄÍ˳ö״̬¡£ÏÂÃæÊÇÒ»¸ ......

JAVA AWT ʼþ´¦Àí¼°ÄÚ²¿ÀàµÄʵÏÖ


import java.awt.*;
import java.awt.event.*;
public class TestFrame {
 Frame fm = new Frame();
 public void init(){
  
  fm.setSize(300,300);
  Button btn = new Button("ok");
  
  fm.add(btn);
  btn.addActionListener(ne ......

̸̸javaÈçºÎѧϰ

Çë²»Òª°ÑÄãµÄѧϰJava֮·ºÍÆäËü¼ÆËã»ú¼¼Êõ·Ö¿ª¿´´ý£¬¼¼ÊõµÄÁªÏµÍùÍùÊÇǧ˿ÍòÂƵģ¬ÄãÓ¦¸ÃÕÆÎÕһЩѧϰJavaËùÉæ¼°µÄ»ù´¡ÖªÊ¶£¬¶ÔÓÚ “CLASSPATHÒªÔõôÉèÖð¡”¡¢“¹òÇóJDKÏÂÔصØÖ·”µÈµÈÎÊÌ⣬Äã²»¸ÃÎÊ£¬ÒòΪInternetÉÏÌ«¶à´ð°¸ÁË£¬ÉõÖÁ»»¸ö½Ç¶È˵£¬ÄãÊDz»ÊÇ»¹²»ÊʺÏÖ±½Óѧϰ±à³Ì£¿
1£©Âò±¾JavaѧϰÓà ......

ѸÀ×JAVA±ÊÊÔ+ÃæÊÔ+ÉÏ»ú

ѸÀ×ÃæÊÔ»ØÀ´£¬ÓÃÁËÕûÕûÒ»ÏÂÎ磨²»ÖªµÀÔõô˵ÁË£¬ÆäÖеȴýʱ¼ä¶¼¿ì2СʱÁË£©£¬×Ô¼º¸Ð¾õ±ÊÊÔºÍÉÏ»ú»¹¿ÉÒÔ£¬µ«¼¼ÊõÃæ̸ÕâÒ»¹Ø´ðµÃ²»Ì«ºÃ£¬ÏÖÔÚÔٴθоõ»¥ÁªÍø¹«Ë¾ÓëÒ»°ãÈí¼þ¹«Ë¾µÄÇø±ðÁË£¬ÆäÖÐÒ»µã¾ÍÊÇ»¥ÁªÍøÓ¦ÓÃÔÚÐÔÄÜÉÏÒªÇóºÜ¸ß£¬Ì¸ÁËÒ»¸öСʱ´ó²¿·ÖÌâÄ¿¸Ð¾õ¶¼ÔÚ̸ÂÛÐÔÄÜÎÊÌ⣬×Ô¼ºÔÚ·½ÃæÒ»Ö±ÊÇÈõÏº¹°¡£º£¨
×Ðϸ»ØÒäÁË ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ