How can I write an if statement for a string variable in Java?

How can I write an if statement for a string variable in Java?

if (name.equals(stop)) {  
  return;  
}

How can I write an if statement for a string variable in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *