Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.print.*;
- class Test {
- public static void main (String [] args)
- {
- PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
- System.out.println("Number of print services: " + printServices.length);
- for (PrintService printer : printServices)
- System.out.println("Printer: " + printer.getName());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement