#I need help with making my scanner work after creating theater scenes in code.org

11 messages · Page 1 of 1 (latest)

balmy crater
#

I need to get it to loop back but I can't

#

If possible I want to show my code to you and see where the issue is

sacred garden
#

It is possible

#

!format java

hasty daggerBOT
#
Code Formatting

When sharing code with the community, please use the correct formatting for ease of readability.

Example

```java
YOUR CODE HERE
```

Those are back ticks not single quotes, typically the key above TAB

#

@balmy crater

xlgmodz Uploaded Some Code
Uploaded these files to a Gist
#

@balmy crater

xlgmodz Uploaded Some Code
Uploaded these files to a Gist
sacred garden
#

That works too

balmy crater
#

I have my main running the code butI can't get the scanner to go back and do its prompts again after it does it once

north fog
#

Idk what you really need but I'd just wrap the scanner.nextInt and for loop in a do-while loop.

#
do {
  // Your logic here
} while (condition);