Created
September 26, 2018 00:51
-
-
Save landjd19/72ebbda4ff61fd3d617f6307d7b5fc9b to your computer and use it in GitHub Desktop.
Run Password Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This runs the program and gets the input. | |
* | |
* Jake Landaiche | |
* 2.2.0 | |
*/ | |
import java.util.*; | |
public class MakePassword | |
{ | |
// instance variables - replace the example below with your own | |
public static void main(String[] args){ | |
Scanner sc = new Scanner(System.in); | |
System.out.println("To generate your password, please input the number of characters you want for its length. The minimum number of characters is 4."); | |
int input = sc.nextInt(); | |
if(input < 4) | |
input = 4; | |
PasswordGenerator passGen = new PasswordGenerator(); | |
String newPass = passGen.makePass(input); | |
System.out.println(newPass); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment