【问题标题】:I am struggling with creating object this method我正在努力用这个方法创建对象
【发布时间】:2013-11-14 11:17:20
【问题描述】:

此方法无效

    /**
    * Outputs all details of all customers to the terminal window.
    */
   public void getAllBorrowers()
   {
       int index = 0;
            while(index < borrowers.size()) 
        {
            borrowers.get(index);
            index++;
        }

        System.out.println("Number of borrowers: " + getNumberOfBorrowers());
    }

【问题讨论】:

  • “不工作”不是一个体面的错误描述。

标签: methods this


【解决方案1】:

我不太确定你想在这里做什么。

但从函数看来,您正在从 借款人.get(index);

但没有得到价值并打印出来。

您能告诉我们您对这里的期望吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-01-23
    • 1970-01-01
    • 2019-01-10
    • 2021-05-11
    • 2021-03-03
    • 1970-01-01
    • 2015-08-10
    相关资源
    最近更新 更多