Guest User

Untitled

a guest
Jun 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. public class VendIt_P4 {
  2.  
  3. public static void main(String[] args)
  4. {
  5. try
  6. {
  7. VendCustomer vOrder = new VendCustomer();
  8. vOrder.displayWelcomeMsg();
  9.  
  10. VendCustomer vCust = new VendCustomer();
  11. //vCust.getVendCustInfo1();
  12. vCust.getVendCustInfo2();
  13. vCust.getVendType();
  14. vCust.displayOutputMsg();
  15. vCust.fileWrite();
  16. }
  17.  
  18. // Catch any NullPointer Exception Error
  19. catch (NullPointerException error)
  20. {
  21. System.out.println("Caught the NullPointerException Error");
  22. System.exit(0);
  23. }
  24. }
  25. }
Add Comment
Please, Sign In to add comment