Preview:
public class Password {
  
  public static void main(String[] args) {
    
    String password = "IgotTheKEYS";
    
    // Write the code:
    System.out.println(password.equals("Mango"));
    System.out.println(password.equals("IgotTheKEYS"));
    System.out.println(password.equals("igotthekeys"));
    //compares two strings without considering upper/lower cases.
    System.out.println(password.equalsIgnoreCase("igotthekeys"));
  }
  
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter