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

javaµÚ10Ìì´úÂë(Ïß³Ì)

/******************TestThread.java begin****************************/ 
public class TestThread {
 public static void main(String[] args) {
  // TODO Auto-generated method stub
  Object obj=new Object();
  
  print p=new print(obj);
  Thread th=new Thread(p);
  th.start();
  printNum pn=new printNum(obj);
  pn.start();
  
 }
}
class printNum extends Thread{
 private Object obj;
 
 public printNum(Object obj){
  this.obj=obj;
 }
  public void run(){
   synchronized(obj){
   for(int i=1;i<=26;i++){
    System.out.println(i*2-1);
    System.out.println(i*2);
    obj.notifyAll();
    try {
     obj.wait();
    } catch (InterruptedException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
    }
 //   System.out.println(Thread.currentThread().getName()+":"+i);
   }
  }
 }
}
class print implements Runnable{
    private Object obj;
 
 public print(Object obj){
  this.obj=obj;
 }
 public void run(){
  synchronized(obj){
  for(char i='A';i<='Z';i++){
   System.out.println(Thread.currentThread().getName()+":"+i);
   obj.notifyAll();
   try {
    obj.wait();
   } catch (InterruptedException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
   }
  }
  }
 }
}
/******************TestThread.java end****************************/ 
/*********************


Ïà¹ØÎĵµ£º

Java »ù´¡³£Óù¦ÄÜÓï¾ä

 
2009-08-18 15:49
////ÉèÖþÓÖУ¨×¢Ò⣬ҪÔÚÉèÖô°Ìå´óСÏÂÃæÉèÖøþ䣩
this.setLocationRelativeTo(null);
********************
String[] kecheng = {"Java","Ó¢Óï","Êýѧ"};
   JComboBox jComboBox3 = new JComboBox(kecheng);  
JComboBox jComboBox2 = new JComboBox();
******* ......

JAVAÃæÊÔ×ÛºÏ

1.J2EEÊÇʲô£¿
  2.½éÉÜJAVAÖеÄCollection FrameWork(°üÀ¨ÈçºÎд×Ô¼ºµÄÊý¾Ý½á¹¹)?
    ÈçCOLLECTIONÖÐÒÅÁôÀà(HASHTABLE¡¢VECTOR)ºÍÏÖÓÐÀàµÄÇø±ð£¿(ͬ²½)
  3.JavaÖÐÒì³£´¦Àí»úÖÆ£¬Ê¼þ»úÖÆ£¿
¡¡
  4.EJBÓëJAVA BEANµÄÇø±ð£¿
     EJBÓëJAVA BEANÊÇSUNµÄ²»Í¬×é¼þ ......

Java£ºÆËË·ÃÔÀëµÄString

 ¡¡¡¡JavaÄÚ´æ·ÖÅä:
¡¡¡¡1. ¼Ä´æÆ÷£ºÎÒÃÇÔÚ³ÌÐòÖÐÎÞ·¨¿ØÖÆ£»
¡¡¡¡2. Õ»£º´æ·Å»ù±¾ÀàÐ͵ÄÊý¾ÝºÍ¶ÔÏóµÄÒýÓ㬵«¶ÔÏó±¾Éí²»´æ·ÅÔÚÕ»ÖУ¬¶ø
¡¡¡¡ÊÇ´æ·ÅÔÚ¶ÑÖУ»
¡¡¡¡3. ¶Ñ£º´æ·ÅÓÃnew²úÉúµÄÊý¾Ý£»
¡¡¡¡4. ¾²Ì¬Óò£º´æ·ÅÔÚ¶ÔÏóÖÐÓÃstatic¶¨ÒåµÄ¾²Ì¬³ÉÔ±£»
¡¡¡¡5. ³£Á¿³Ø£º´æ·Å³£Á¿£»
¡¡¡¡6. ·ÇRAM´æ´¢£ºÓ²Å̵ÈÓÀ¾Ã´æ´ ......

java ¿àÓëÀÖ£¨²Ý¸å£©

  Ñ¡ÔñÁËjava£¬Ò²¾ÍÊÇÑ¡ÔñÁËÒ»Ìõ¹âÃ÷¶ø¿²¿ÀµÄµÀ·¡£ËµËû¹âÃ÷ÊÇÒòΪӦÓõĵط½ÈÕÒæ¹ã·º£¬È«ÇòÓкܴóµÄ¿ª·¢ÈºÌåÔÚΪ֮æµ£¬¿ªÔ´ÏîĿӦÓо¡ÓУ»ËµËû¿²¿À£¬ÊÇÒòÎªËæ×ÅjavaµÄ·¢Õ¹£¬ÏÖÔÚÓÐÁËÌ«¶àµÄ·ÖÖ§¼¼Êõj2ee 13ÖÖ¼¼Êõ£¬Ì«¶àµÄ¿ò¼Ü(´Óµ×²ãµ½Ò³Ãæ)Èç¹ûÒªÕÆÎÕ»¹Õæ²»ÊǼþÈÝÒ×µÄÊÂÇ飬¶øÇÒ¿ªÔ´µÄ¶«Î÷ÓÀÎÞÖ¹¾¡µÄÔÚÉý¼¶£¬ÔÚÍÆ³Â ......

javaÃæÊÔÌâ1

l    JBS
1.Áоٳö 10¸öJAVAÓïÑÔµÄÓÅÊÆ
a:Ãâ·Ñ£¬¿ªÔ´£¬¿çƽ̨(ƽ̨¶ÀÁ¢ÐÔ)£¬¼òµ¥Ò×Ó㬹¦ÄÜÍêÉÆ£¬ÃæÏò¶ÔÏ󣬽¡×³ÐÔ£¬¶àỊ̈߳¬½á¹¹ÖÐÁ¢£¬ÆóÒµÓ¦ÓõijÉÊìÆ½Ì¨, ÎÞÏßÓ¦ÓÃ
2.ÁоٳöJAVAÖÐ10¸öÃæÏò¶ÔÏó±à³ÌµÄÊõÓï
a:°ü£¬À࣬½Ó¿Ú£¬¶ÔÏó£¬ÊôÐÔ£¬·½·¨£¬¹¹ÔìÆ÷£¬¼Ì³Ð£¬·â×°£¬¶à̬£¬³éÏ󣬷¶ÐÍ
3.ÁоٳöJAVAÖÐ6¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ