1819202122232425262728
public static void main(String[] args) { String printer_name = "PrintServer1"; ILinePrinter printer = new JavaLinePrinter(printer_name); if (!printer.ping()) { System.out.println("Java printer " + printer_name + " is not available."); return; }