How can I have a Java method return multiple values?

前端 未结 6 2000
灰色年华
灰色年华 2020-12-21 19:10

I was just wondering whether there\'s a way to make a Java method return multiple values.

I\'m creating an application that uses the jdbc library to work with a data

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-21 19:44

    Why not just return Customer, or create a small class with all the values you want returned in it and return that class?

提交回复
热议问题