Help with password entry and verfication - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Help with password entry and verfication

javaNoob12javaNoob12 Posts: 6Member
/* import java.util.*;

public class Password
{
int intTime;

public static void main(String[] args)
{
Scanner input = new Scanner(System.in);

System.out.println("Please Enter you name: ");
String strName = input.nextLine();

System.out.println("Welcome to Password Protector " + strName);

System.out.println("Enter the expiration time in seconds
(5-30) of your password: ");

if((intTime > 4) && (intTime < 31))
{
System.out.println("Please enter a new password: ");
Sting strPass = input.nextLine();
}
else
{
System.out.println("The password has successfully been
changed to " + strPass);
}
}
} */

Comments

Sign In or Register to comment.