Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Input with InputReceiver Class #47

Open
FosterSamuel opened this issue Mar 10, 2019 · 1 comment
Open

Get Input with InputReceiver Class #47

FosterSamuel opened this issue Mar 10, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@FosterSamuel
Copy link
Contributor

FosterSamuel commented Mar 10, 2019

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.

@FosterSamuel
Copy link
Contributor Author

Working on this -- will update soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant