Does anybody see what am doing wrong here, i get this error ” the method giveTea in the type Guest is not applicable for the argument (void) , am new to java + my english is bad XD, so what does this mean.
Guest alice = new Guest();
alice.giveTea. (new Tea().setName("Roseship Tea"));
alice.giveTea. (new Tea().setSugar(false));
alice.giveTea. (new Tea().setMilk(true));'
setter return void, not the instance itself. You should do it this way