web start里面就有你的第一个程序好像是一样的
至于第二各导网上收就有很多

解决方案 »

  1.   

    其实也不是太难。给你一个通信解决方案:
    1、用ServerSocketChannel和SocketChannel实现服务器和客户端的通信,客户端在每次操作后都要将结果发送到服务器,由服务器负责分发(只是框架,几天就可以搞定)2、消息包定义,这个是关键部分,也可能是最困难的部分,功能全靠消息包来实现的,可能需要几十种消息包。自己按照功能定义吧!
    有什么问题可以发email给我:[email protected]
      

  2.   

    当年操作系统的课程设计是——作一个课件flash!!!
      

  3.   

    也太简单了吧,我们是一个rpg游戏~1
      

  4.   

    下面是一个线程同步问题,你好好体会一下吧!class q {//产生同步序列
       int n;
       boolean val=false;
       synchronized int get(){
         if(!val){
           try{
             wait();
             }catch(java.lang.InterruptedException e){}
         }     System.out.println("get: "+n);
         val=false;
         notify();
         return n;
       }   synchronized int put(int n){
         if(val){
           try{
             wait();
             }catch(java.lang.InterruptedException e){}
         }
         this.n=n;
         val=true;
         System.out.println("put:"+n);     notify();
         return n;
       }
    }class pro implements Runnable{//生产者
      q q1;  pro(q q1){
        this.q1=q1;
        new Thread(this).start();
      }  public void run(){
        int i=0;
        while(i!=5)
        try{
          q1.put(i++);
          Thread.sleep(1000);
        }catch(java.lang.InterruptedException e){}
      }
    }
    class cust implements Runnable{//消费者
      q q1;
      cust(q q1){
        this.q1=q1;
        new Thread(this).start();
      }  public void run(){
        while(true){
          q1.get();
        }
      }
      public static void main(String[] args) {
        q q1=new q();
        new pro(q1);
        new cust(q1);
      }
    }
      

  5.   

    不好意思问一句,web start是怎么用的!