Is it possible to update all objects in Java without loop?

后端 未结 0 890
攒了一身酷
攒了一身酷 2020-12-31 00:17

I have a employee class and I want all employee\'s age to be increased by one with one method without looping. Is that possible?

class Employee{
    Employee(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题