how to make an if statement then send a message [closed]

if (a.equalsIgnoreCase("yes")) {
    ...
}

(or equals if you want to match "yes" exactly)

Leave a Comment