本帖最后由 AV_SWAP 于 2010-11-13 20:24:06 编辑

解决方案 »

  1.   

      public static void main(String[] args) {   
      lo a=new lo();
                       a.xxx();
        
      }      
      

  2.   

    假如我的public class lo{
    compute(int s){
    }
    retime(int h){
    }
    带参数, 这样不对啊、·
      

  3.   


    你的方法缺少了返回类型
    类似
    int compute(int s){}
    就可以了
      

  4.   

    class Test{

    public String MyPrint(String a){
    System.out.println("MyPrint");
    return "Myprint "+a;
    }
        public static void main(String args[]) {  
        Test get=new Test();
        System.out.println(get.MyPrint("test"));;
      }}