Guest User

Untitled

a guest
Jan 21st, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. /* Copyright 2019. All Rights Reserved. */
  2.  
  3. import java.io.*;
  4.  
  5. /**
  6. * Implementation of Note.
  7. * Contains methods to add, edit or remove content in a note.
  8. */
  9. public class Note {
  10.  
  11. /**
  12. * Loads dependencies and starts the application.
  13. */
  14. public static void main (String[] args) {
  15. final String ADD_NOTE = "1";
  16. //Add note
  17. try {
  18. if (getUserInput().equals(ADD_NOTE)) {
  19. Note note = new Note();
  20. note.add(getContent());
  21. }
  22. } catch (InvalidInputException iie) {
  23. System.out.println("Not a valid input!");
  24. }
  25. }
  26.  
  27. /**
  28. * Returns user input.
  29. */
  30. static String getUserInput() throws InvalidInputException {
  31. ...
  32. }
  33. }
Add Comment
Please, Sign In to add comment