ID and Password Verification (String)
package String; import java.util.Scanner; public class EmailPassVer { public static void main(String[] args) { Scanner sc= new Scanner(System.in); System.out.println("Enter your mail"); String email=sc.next(); Boolean tf=isValid(email); if(tf.equals(false)) { System.out.println("not valid email"); }else { System.out.println("Enter your password"); String pass=sc.next(); String eemail="bikas.shah1921@gmail.com"; String ppass="bikas123"; if(email.equals(eemail) && pass.equals(ppass)) { System.out.println("Login Sucessfully"); }else if (email.equals(eemail)||pass.equals(ppass)) { System.out.println("Email password not match"); }else if(email.isBlank()) { System.out.println("email cannot be blank"); }else if(email.isEmpty()) { System.out.println("email cannot be empty"); }else if(pass.isBlank()) { System.out.printl...