Skip to content

Get Input with InputReceiver Class #47

Description

@FosterSamuel

The InputReceiver class should offer a static int method, getOptionFromChoices(String[] menu). This method will output a list of the menu, handle user input within the bounds of the options and return the inputted choice.

For example, passing ["See all reminders", "Toggle reminder", "Create reminder", "Delete reminder"] will output the list:

  1. See all reminders
  2. Toggle reminder
  3. Create reminder
  4. Delete reminder

For that input, it will ignore input outside of the choices 1, 2, 3 or 4.

This class will be used inside of SanteMenu. See #46.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions