Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Copyright 2019. All Rights Reserved. */
- import java.io.*;
- /**
- * Implementation of Note.
- * Contains methods to add, edit or remove content in a note.
- */
- public class Note {
- /**
- * Loads dependencies and starts the application.
- */
- public static void main (String[] args) {
- final String ADD_NOTE = "1";
- //Add note
- try {
- if (getUserInput().equals(ADD_NOTE)) {
- Note note = new Note();
- note.add(getContent());
- }
- } catch (InvalidInputException iie) {
- System.out.println("Not a valid input!");
- }
- }
- /**
- * Returns user input.
- */
- static String getUserInput() throws InvalidInputException {
- ...
- }
- }
Add Comment
Please, Sign In to add comment