HelloJack.java Friday, January 14, 2022, 7:52 PM1 import components.simplereader.SimpleReader;56 /**7 * Put a short phrase describing the program here.8 *9 * @author Chime Nwaru10 *11 */12 public final class HelloJack {1314 /**15 * Private constructor so this utility class cannot be instantiated.16 */17 private HelloJack() {18 }1920 /**21 * Main method.22 *23 * @param args24 * the command line arguments25 */26 public static void main(String[] args) {27 SimpleReader in = new SimpleReader1L();28 SimpleWriter out = new SimpleWriter1L();29 /*30 * Put your main program code here31 */out.println("What is your name?");32 String name = in.nextLine();3334 out.print("Hello, " + name + ".");35 ;36 /*37 * Close input and output streams38 */39 in.close();40 out.close();41 }4243 }44Page
View Full Document