User Profile
Collapse
-
Just for the sake of argument and to stay within my limits, this program is to be used by only me and only on my computer, and therefore I would have the only password. Would the above work? -
Simple User/Pass Access
...Code:import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner input = new Scanner(System.in); String username, tempuser; username = "testuser"; {System.out.println("Please enter your username."); tempuser = input.nextLine(); if (!tempuser.equals(username)){ System.out.println("Wrong username.");
No activity results to display
Show More
Leave a comment: