2015-01-17

The project I'm working on is as such: I'm making a program where clients (Client) are assigned shares (Share) to contracts (Contract). For example, Client a is set 40% of Contract c and Client b is set 30% of Contract c.

I have an arrayList för shares inside my Contract class.

What I want to do is to get a return this looks something along the lines of (nevermind the dates and such, that's working fine):

* Contract Description *

What I'm getting is this:

Shares

These are my functions:

This is my Share class:

I'm sure there's a smart way of doing this that I'm simply not seeing. Help would really be appreciated. If I'm being unclear about something I haven't thought about I'll try to give my best answer.

Show more