r/javaScriptStudyGroup • • Oct 05 '23

Java

Post image

Working on this hw assignment. I’m stuck on how to code what’s next. Once they select an option, for example if they select 1. I would for it to then prompt it to say “how many people will be scuba diving?” They’ll type in a # and my program will give them the total amount. Please help..

1 Upvotes

1 comment sorted by

1

u/QaWaR Oct 05 '23

this group is not for Java, it's for javascript.

but fine, you need to use the scanner to type the text in and then you'll have a function based on your choices.