System.out.printf("Broadcast Address:\t\t%s\t[%s]\n", info.getBroadcastAddress(),
Integer.toBinaryString(info.asInteger(info.getBroadcastAddress())));
System.out.printf("Low Address:\t\t\t%s\t[%s]\n", info.getLowAddress(),
Integer.toBinaryString(info.asInteger(info.getLowAddress())));
System.out.printf("High Address:\t\t\t%s\t[%s]\n", info.getHighAddress(),
Integer.toBinaryString(info.asInteger(info.getHighAddress())));
System.out.printf("Total usable addresses: \t%d\n", info.getAddressCount());
System.out.printf("Address List: %s\n\n", Arrays.toString(info.getAllAddresses()));
final String prompt ="Enter an IP address (e.g. 192.168.0.10):";