Java tutorial
//package com.java2s; public class Main { public static boolean isPasswordCorrect(String password, String againPasswrod) { if (password.equalsIgnoreCase(againPasswrod)) return true; return false; } }