Skip to content

tripbuddy001/newtrip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

import java.util.Scanner;

public class Login { public void run() { Scanner scan = new Scanner (new File("the\dir\myFile.extension")); Scanner keyboard = new Scanner (System.in); String user = scan.nextLine(); String pass = scan.nextLine(); // looks at selected file in scan

String inpUser = keyboard.nextLine();
String inpPass = keyboard.nextLine(); // gets input from user

if (inpUser.equals(user) && inpPass.equals(pass)) {
    System.out.print("your login message");
} else {
    System.out.print("your error message");
}

} }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors