File tree 2 files changed +2
-1
lines changed
TASK-1 (Online Reservation System)/src/Login_Sys
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ public static void main(String[] args) {
12
12
Scanner input =new Scanner (System .in );
13
13
System .out .print ("Enter 0 for Rock 1 for Paper 2 for Scissors : " );
14
14
int user_Input =input .nextInt ();
15
+ input .close ();//clossing the input
15
16
//randomly takes input from compter....
16
17
17
18
Random rand =new Random ();
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ private void initialize() {//Defining labels that would appear on the login form
85
85
btnNewButton .addActionListener (new ActionListener () {
86
86
public void actionPerformed (ActionEvent e ) {//On clicking login following operations would be performed
87
87
88
- String password = txtPassword .getText () ;
88
+ String password = txtPassword .get ;
89
89
String username = textField .getText ();
90
90
91
91
if (password .contains ("king" )&& username .contains ("one" )) {//If the username and password matches
You can’t perform that action at this time.
0 commit comments