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

ECLIPSE µ÷ÊÔjava Ô´Âë

ÒýÓÃ
1.µã “window”-> "Preferences" -> "Java" -> "Installed JRES"
2.´Ëʱ"Installed JRES"ÓÒ±ßÊÇÁÐ±í´°¸ñ£¬ÁгöÁËϵͳÖÐµÄ JRE »·¾³£¬Ñ¡ÔñÄãµÄJRE£¬È»ºóµã±ßÉ쵀 "Edit..."£¬ »á³öÏÖÒ»¸ö´°¿Ú(Edit JRE)
3.Ñ¡ÖÐrt.jarÎļþµÄÕâÒ»Ï“c:\program files\java\jre_1.5.0_06\lib\rt.jar”
µã ×ó±ßµÄ“+” ºÅÕ¹¿ªËü£¬
4.Õ¹¿ªºó£¬¿ÉÒÔ¿´µ½“Source Attachment:(none)”£¬µãÕâÒ»ÏµãÓұߵİ´Å¥“Source Attachment...”, Ñ¡ÔñÄãµÄJDKĿ¼Ï嵀 “src.zip”Îļþ
5.һ·µã"ok",½áÊø¡£
dt.jarÊǹØÓÚÔËÐл·¾³µÄÀà¿â,Ö÷ÒªÊÇswingµÄ°ü 
tools.jar ÊǹØÓÚһЩ¹¤¾ßµÄÀà¿â 
rt.jar°üº¬ÁËjdkµÄ»ù´¡Àà¿â£¬Ò²¾ÍÊÇÄãÔÚ java docÀïÃæ¿´µ½µÄËùÓеÄÀàµÄclassÎļþ


Ïà¹ØÎĵµ£º

java£ºArrayListÑ­»·±éÀúµÄÁ©ÖÖ·½·¨Ê¹ÓÃ

package collection;
import java.util.*;
public class NewArrayList {
 public static void main(String[] args) {
  List<Student> students = new ArrayList<Student>();
  for (int i = 0; i < 6; i++) {
   students.add(new Student("Happy"+i,"male" ......

java£ºSetÑ­»·±éÀúµÄÁ©ÖÖ·½·¨Ê¹ÓÃ

package collection;
import java.util.*;
public class NewSet {
 public static void main(String[] args) {
  Set<Student> students = new HashSet<Student>();
  for (int i = 0; i < 6; i++) {
   students.add(new Student("Happy"+i,"male"+i,20+i)) ......

java£ºStudentÀà

package collection;
public class Student {
 
 public Student() {}
  
 public Student(String name, String sex, int age) {
  this.name = name;
  this.sex = sex;
  this.age = age;
 }
 @Override
 public String toString() { ......

java£ºµÝ¹é£º10µÄ½×³Ë

package game;
public class JieCeng {
 public static void main(String[] args){
  System.out.println(fun(10));
 }
 
 public static int fun(int n){
  if(1==n)
   return 1;
  System.out.println( n * fun(n-1));
  return ......

Java Programming ¡¾replace tool¡¿

³£³£ÐèÒªµÝ¹éµÄÌæ»»ÎļþÄÚÈÝ£¬Èç×î½üÎÒÏëдÁ˸öjEdit²å¼þ£¬jEditÌṩÁËÒ»¸ö²å¼þÄ£°å£¬ÎÒֻҪȫ²¿Ì滻һϾͳÉÁËÎÒ×Ô¼ºµÄ¹¤³Ì¡£ÔÚlinuxÏ£¬ÕâºÃ°ì£¬shellÀ´¸ã¶¨£¬µ«ÔÚWindowsÏ»òÕß²»ÊìϤshell¾ÍµÃÏëµãÆäËû°ì·¨À´°ìÁË£¬EditPlus¿ÉÒÔ£¬UEÒ²¿ÉÒÔ£¬²»¹ý²»Ì«·½±ãµÄÊÇÎļþÃû²»ºÃÌæ»»£¬ÒÔÇ°¸ø×Ô¼ºÐ´¹ýÒ»¸öС¹¤¾ßÀ´³ÉÅú¸ÄMP3µÄÃû×Ö£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ