#help with ap comp sci problem

15 messages · Page 1 of 1 (latest)

bronze bluff
#

I've been trying to finish this question whenever I check code it gives me this error but when I run it it works exactly how it shows in the example any idea why?

mint stormBOT
#

This post has been reserved for your question.

Hey @bronze bluff! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

maiden wigeon
#

try using only 1 scanner?

#

otherwise I have no other ideas

bronze bluff
#

Problem is it requires four different inputs

#

@maiden wigeon

maiden wigeon
#

well yes. you can use a scanner for as many inputs as you'd like

bronze bluff
#

How?

maiden wigeon
#
Scanner input = new Scanner(Sytem.in)

String str1 = input.nextLine();
String str2 = input.nextLine();
bronze bluff
#

Oh ok

maiden wigeon
#

you can use the scanner object you've created as many times as you'd like

bronze bluff
#

That worked thanks

mint stormBOT
# bronze bluff That worked thanks

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.