#Exception issue #2

1 messages ยท Page 1 of 1 (latest)

unique warrenBOT
#

<@&987246399047479336> please have a look, thanks.

strong coyote
#

Please post as file upload or wrap with 3 ` marks at the start and end

radiant crater
unique warrenBOT
radiant crater
#

@strong coyote like this or jsut a whole new post in general?

strong coyote
#

thats fine

#

sry im trying to find this usb that i bought a few months ago but i give up

radiant crater
#

lol no worries im not in a rush

strong coyote
#

neither am I ๐Ÿ’€ its probably still in my car or somethin

#

anyways you didnt make a method for handling the input validation looping, do you not know about methods yet or?

radiant crater
#

kind of im know about them I am just horrible at executing them well.

strong coyote
#

ok well as a reminder i'll give you a starter stub

public static String getValidatedInput(String prompt) {

}```
#

whatever you want to name it, and then as i hinted at from exception issue #1 have the try/catch and retries encapsulated in it

radiant crater
#

ok im going to try and give it a shot thank you

lavish whale
#

actually, since its validation, wouldnt a boolean be better ? that either correct or not

strong coyote
#

well they want to loop until its correctly input, so after they get a valid input it'll be a string. And they want to do that multiple times

#

its a continuation of #1233502821798908034