I simply need to write a class which will get a username, password and an Array of Account Numbers. But this class needs to return a complex type in JAVA

Eg: for 3 Account Number given in Array, class will return

ResultType  0                       
ResultMsg   3                   
ResultID    19255                       
Result  AccountNo   90542999999             
    Name Surname    Milan Baros             
    NumberOfBills   3                   
    BillAmount  BillID  Term    Payment Date    Sum Paid    Left
             123456780  201010  10.11.2010  100 10  90
             123456781  201011  10.12.2010  110 0   110
             123456782  201012  10.01.2011  120 0   120
    AccountNo   905428888888                
    Name Surname    Harry Kewell                
    NumberOfBills   2                   
            BillAmount  BillID  Term    Payment Date    Sum Paid    Left
                 123456783  201011  10.12.2010  110 0   110
                     123456784  201010  10.11.2010  100 10  90
    AccountNo   905427777777                
    Name Surname    Arda Turan                  
    NumberOfBills   1                   
            BillAmount  BillID  Term       Payment Date Sum Paid    Left
                 123456785  201101     10.02.2011   80  40  40
share|improve this question
3  
This is not really a question. And there is absolutely no context, except perhaps homework. – Jonathan Wood Apr 22 '11 at 10:44
feedback

closed as not a real question by Jonathan Wood, skaffman, Joachim Sauer, Nikita Rybak, trashgod Apr 22 '11 at 11:54

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

1 Answer

You can use a typed data set.

share|improve this answer
sorry forgotten to mention, need to code it in JAVA – ndonmez Apr 22 '11 at 11:33
its not dificult to understand its a question from the title, i am asking which one to use ? Multidimensional Array Or Multidimensional ArrayList, or anything else can be suggested.... – ndonmez Apr 22 '11 at 13:03
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.