JAVABEAN不太熟
参数传递怎么实现那?

解决方案 »

  1.   

    一般来说,像这类的东东用Bean(组件)实现还是好些,不懂的话多看看书吧。
      

  2.   

    先写一个带有所有不定参数的函数,然后再重载他,用同名但有不同参数的方法来,减少实际调用中传参的数量例如
    public String testFuc(test1,test2,test3){
      return testFnc(test1,test2,test3,null,null,null,null)
    }
    public String testFuc(test1,test2,test3,test4,test5,test6,test7){..}
    类似吧!
      

  3.   

    Faint!
    don't understand what does this have to to with bean. 
    totally different things.
    今晚吃的什么呀?
    我刚洗完脚。哈哈。