Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

Help with password entry and verfication

$
0
0
/* 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);
}
}
} */

Viewing all articles
Browse latest Browse all 2703

Trending Articles