Skip to content
Snippets Groups Projects
Commit 5a1d0259 authored by owner's avatar owner
Browse files

Homework 2

parent 1b3912a8
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,6 @@ public class LennonHW2Client ...@@ -33,7 +33,6 @@ public class LennonHW2Client
// default constructor // default constructor
} }
static String DESTINATION_HOST = "localhost"; static String DESTINATION_HOST = "localhost";
static int MAX_LOOP_COUNT = 4;
/** /**
* Program invocation, execution starts here * Program invocation, execution starts here
...@@ -43,9 +42,7 @@ public class LennonHW2Client ...@@ -43,9 +42,7 @@ public class LennonHW2Client
try { try {
boolean play; boolean play;
Scanner scanner = new Scanner(System.in); Scanner scanner = new Scanner(System.in);
System.out.println(LennonHW2Client.class.getName() + " start, loop " + MAX_LOOP_COUNT + " times");
//for (int loopCount = 1; loopCount <= MAX_LOOP_COUNT; loopCount++) // loop then exit
do{ do{
System.out.println("======================================================="); System.out.println("=======================================================");
System.out.println(LennonHW2Client.class.getName() + " creating new socket ...\n"); System.out.println(LennonHW2Client.class.getName() + " creating new socket ...\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment