#i dont understand try catch

1 messages · Page 1 of 1 (latest)

dense galleon
#

i got this try without catch error what is wrong? trying to fix it but havent been able to

mystic bronzeBOT
#

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

mystic bronzeBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

deep kernel
dense galleon
#

try catch eror

#

like the whole code?

deep kernel
deep kernel
dense galleon
#

i put pictures

#

oh ok wait

#

how do i post it?

mystic bronzeBOT
#

Please use this format for posting code:

```java
// Example java program
int value = 5;
System.out.println(value);
```

Which results in:

// Example java program
int value = 5;
System.out.println(value);

For syntax highlighting, you have to add the name of the language after the three backticks, like ```java. Please make sure to use exactly this format, so no space between the backticks and the language name, and a newline before the code starts. If done right, the syntax highlighting will even be applied to your text as you type, before sending.

deep kernel
#

or

mystic bronzeBOT
dense galleon
#

i shared the code

deep kernel
#

and so

#

what's the error ?

dense galleon
#

in line 371 try without catch

#

and down below442 same but with catch

deep kernel
#

can you format your code please

#

it's really hard to follow the braces currently

dense galleon
#

format?

deep kernel
#

yes

dense galleon
#

idk what that is can you explain

deep kernel
#

the indent in your code is messed up

#

each {} pair should have its own level of indent

dense galleon
#

i think i did it can you check

dense galleon
deep kernel
#

so please fix that

dense galleon
#

is this not it?

deep kernel
dense galleon
#

my paste?

digital dawn
#

its not the same code as the first paste

deep kernel
#

it's not a link to a paste rather

#

click on the link you shared

#

you'll see

dense galleon
#

i think now it works

deep kernel
dense galleon
#

that } is for the one on line 412

#

if i remove that i get more errors

deep kernel
dense galleon
#

ok