I have a question about this programming assignment. The outcome when the user puts in Taylor for guest one and Fernando for guest 2 should be, "Your party is ruined and another bad pop song will be written." However, it does not. What do I add to get this outcome? Do I need more brackets?

I have a question about this programming assignment The outcome when the user puts in Taylor for guest one and Fernando for guest 2 should be Your party is ruin class=

Respuesta :

Yes u need more brackets

Use guestNumber1.equals(Fernando) instead of the double equal signs. You cant compare strings with ==

ACCESS MORE
ACCESS MORE
ACCESS MORE
ACCESS MORE