SHARE
TWEET

Untitled

a guest Jan 21st, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top