New to Java - can you tell me whatÂŽs wrong on my program?
Hello everyone. I started to learn Java from the course here on Sololearn. I have completed it all in a couple of hours, but I havenÂŽt understood a lot of things. So I am taking the course again and trying to make a short program after each lesson. I just started module about OOP and made a program, where you can mix up to 3 different liquids to make yourself a custom cocktail. It works fine, but I hit a tiny problem. I want to ask user 3 times for 3 different things. The outpus should look like this: You can have up to 3 diferent liquids in your cocktail. Type "1","2" or "3". The given slot will get overwritten. <USER INPUT> Type liquid - for example "soda". <USER INPUT> Type volume in mililitres - for example "150" <USER INPUT> But it firstly prints all the instructions and THEN it acceptsuser input 3 times. Can you tell me where did I make a mistake?