Skip to content

Instantly share code, notes, and snippets.

@landjd19
Created September 26, 2018 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save landjd19/72ebbda4ff61fd3d617f6307d7b5fc9b to your computer and use it in GitHub Desktop.
Save landjd19/72ebbda4ff61fd3d617f6307d7b5fc9b to your computer and use it in GitHub Desktop.
Run Password Generator
/**
* 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