Hi Ivan, thanks for your reply..
In the code above, you iterate over all the objects of the type Major in the list data. For each iteration, one object from the list is placed in the variable major. You also have a variable i that always contain 1.
BUT when you print the id, code and name, it looks like you call static methods on the Major class. The object from the list, in major, is totally ignored.
What is the result when you run the program? Does it work like expected?
Yes, in that code i forgot to put the increment of variable i..
the result is the list of objects printed in the console, and it work like what i expected...
Next, perhaps i would try to integrate it with Swing..
is it good if we develop a Swing application where do data manipulation in database through WebService?.
please correct me if i'm wrong..
Thanks..