package edu.grcc; import java.io.IOException; import java.net.Socket; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { // write your code here try(Socket s = new Socket("time-a.nist.gov", 13); Scanner in = new Scanner(s.getInputStream(), "UTF-8")){ while(in.hasNextLine()) { String line = in.nextLine(); System.out.println(line); } } } }