You fill the values into info
and then add inf
to the list.
Hint - The standard convention for Java is to hava all classes begin with a capital letter. That would mean you change getInfo
to GetInfo
and infoCtrl
to InfoCtrl
. Since you aren't following the convention, it makes it hard to tell how you are doing the list object (or is it a class) infor
. (We typically find that using longer names helps keep things straight.)