I\'m writing a program that uses an Event class, which has in it an instance of a calendar, and a description of type String. The method to create an event uses a Scanner t
use this to clear the previous keyboard buffer before scanning the string
it will solve your problem
scanner.nextLine();//this is to clear the keyboard buffer