JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.util.Scanner;
/* This program is a password checker. It uses the following criteria:
The password must be at least 8 characters
The password must be only letters or digits
The password must have at least 2 digits
*/
public class Valid_Password {
public static void main(String[] args) {
System.out.print("Enter your new password: ");
Scanner input = new Scanner(System.in);
String password = input.next();
System.out.println(""); // create some space
isValid(password);
input.close();
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Uruchom