bottle homework

bottle homework - student project

hello there,

I'm having a lot of fun learning java and I just got to the bottle exercise,  I tried to make it extra fancy by giving the person using the program the freedom of choice. for example, he gets to choose how many bottles to create and how many litters each bottle contains and can contain. he also chooses whether to add water, remove water, transfer water, and the quantity.

everything seems to work very well except for the transfer from one bottle to another.

could you maybe tell me how to fix my issue? it would be much appreciated.

bottle homework - image 1 - student projectbottle homework - image 2 - student projectbottle homework - image 3 - student projectbottle homework - image 4 - student projectbottle homework - image 5 - student project