Skip to content

Commit

Permalink
Update Client.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedi6431 authored Jul 1, 2024
1 parent 50164b5 commit ca85935
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private Client(String address, int port) {

// string to read input
String line = "";
int user_system;
int userSystem;
boolean linux;


Expand All @@ -40,12 +40,12 @@ private Client(String address, int port) {
System.out.println("2 Windows\n");
System.out.print("--> ");
Scanner scanner = new Scanner(System.in);
user_system = scanner.nextInt();
userSystem = scanner.nextInt();

if (user_system == 1) {
if (userSystem == 1) {
linux = true;
output.writeUTF(String.valueOf(linux));
} else if (user_system == 2) {
} else if (userSystem == 2) {
linux = false;
output.writeUTF(String.valueOf(linux));
} else {
Expand Down

0 comments on commit ca85935

Please sign in to comment.