Skip to content
Snippets Groups Projects
Commit 1faa3a77 authored by Chojnacki, Bruce (LTC)'s avatar Chojnacki, Bruce (LTC)
Browse files

Assignment 1

parent 65cfec8b
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@ package MV3500Cohort2023MarchJune.homework1.Chojnacki;
import java.io.*;
import java.net.*;
import java.text.SimpleDateFormat;
import java.util.Calendar;
/**
* Testing
......@@ -72,7 +74,8 @@ public class Assignment1Client
System.out.println("======================Assignment1===========================");
System.out.print ("Client loop " + clientLoopCount + ": ");
System.out.println("We are connected to the server!");
String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(Calendar.getInstance().getTime());
System.out.println("The current system time is " + timeStamp + "!");
System.out.println("The message the server sent was: '" + serverMessage + "'");
// socket gets closed, either automatically/silently by this code (or possibly by the server)
......
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