Main.java

import java.util.Scanner; /** * A program that manages a calendar. * * @author Chad Hogg * @version 2017-02-23 */ public class Main { /** * Gets the name of a new event. * Note: I created this method so that you don't have to worry about * mixing input.next() with input.nextLine(). * If the only input.nextLine() is here in my method, you should be OK. * * @return The name the user typed in. */ public static String getNewEventName() { Scanner input = new Scanner(System.in); System.out.print("Event name: "); return input.nextLine(); } }