Skip to content

Commit 880d2f7

Browse files
input closed
1 parent 9fe1a86 commit 880d2f7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Project.java

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public static void main(String[] args) {
1212
Scanner input=new Scanner(System.in);
1313
System.out.print("Enter 0 for Rock 1 for Paper 2 for Scissors : ");
1414
int user_Input=input.nextInt();
15+
input.close();//clossing the input
1516
//randomly takes input from compter....
1617

1718
Random rand=new Random();

TASK-1 (Online Reservation System)/src/Login_Sys/Login_System.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private void initialize() {//Defining labels that would appear on the login form
8585
btnNewButton.addActionListener(new ActionListener() {
8686
public void actionPerformed(ActionEvent e) {//On clicking login following operations would be performed
8787

88-
String password = txtPassword.getText();
88+
String password = txtPassword.get;
8989
String username = textField.getText();
9090

9191
if(password.contains("king")&& username.contains("one")) {//If the username and password matches

0 commit comments

Comments
 (0)