问题 I'm having a problem with loops. How does this loop, loop through different values and display all values on the label, rather than displaying the last value of the array on the label? Image of code for loop. 回答1: This below code is just copied(written) from your screenshot. which has the minor bug. sinhvien sv = new sinhvien(); sv.setdata("CC",12); sv.setdata("CL",14); sv.setdata("CCCL",16); s1.add(sv); As you have only created one instance of sv and setting the value 3 times. Value CCCL