diff --git a/src/PasswordApp.java b/src/PasswordApp.java index 86fb0b1..4d522d4 100644 --- a/src/PasswordApp.java +++ b/src/PasswordApp.java @@ -1,5 +1,18 @@ +import java.util.Scanner; + public class PasswordApp { - public static void main(String[] args) { + public static void main(String[] args) { + Scanner scanner = new Scanner(System.in); System.out.println("Welcome to the password checker!"); - } -} \ No newline at end of file + + String password = scanner.nextLine(); + + System.out.println("The password is: " + password); + + if(password.length() >= 12 ) { + System.out.println("Your password is a good length! "); + } else { + System.out.println("Your password is to short"); + } + } + } \ No newline at end of file