Java Saved Program: gifted-af

facebook share

Here's the online compiler accompanied with IDE at your service. This is a saved code by one of our users. Try it out or save your own from the IDE page and don't forget to leave a feedback. You can find that at the bottom of the page.


import java.util.*;

class Password{

    public static void main(String[] args)

       {


	 System.out.println("Enter the password");

         Scanner Cin=new Scanner("System.in");

         String s=Cin.nextLine();

         if(s.length()>10 && s.length()<15)||(s.length()>6 && s.!contains("12345")) {


  		System.out.println("Strong Password");

             }

             else {

  		System.out.println("Invalid Password");

		}
}
}
Execute

Output

Press the execute button or CTRL + enter to run code.

Inputs