#public static void issue?

1 messages ยท Page 1 of 1 (latest)

gloomy obsidianBOT
#

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

#

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.

calm notch
#

Check for opening-closing brackets

hasty shadow
#

how?

calm notch
#

After args)}
Your ide is showing something in red underline. It's giving you hint of what could be a possibile reason for your error.

hasty shadow
#

should it be in the syntax?

calm notch
#

Did you hover over the red underline?

#

add { between args) and }

hasty shadow
sullen anchor
#

hey there!

hasty shadow
#

gday

sullen anchor
#

you need to make main like this main()

#

it seems you're on java 21

#

that's a new feature

#

you can avoid writing a class either

fiery nova
#

he's lacking a simple bracket after args)
args) {

sullen anchor
#

like this

void main() {

}
calm notch
fiery nova
calm notch
#

Yup that's true

hasty shadow
#

theres also something that says "no usages"

#

i tried to do it again and that message comes up

#

created a new class

fiery nova
#

that comes up when your code has no usage. It will disappear on its own @hasty shadow

#

like if your creating 20 classes and one of em has no usage. It will indicate that

hasty shadow
#

ok hold on, looking back at the image I sent.... I'm an idiot ๐Ÿคฃ wrong bracket

#

sorry for wasting ur guys time

sullen anchor
#

doesn't matter

hasty shadow
#

i knew it at first

#

just dk how I missed that

#

it was so simple

#

anyways, cheers guys ๐Ÿ‘

gloomy obsidianBOT
#

Closed the thread.

hasty shadow
#

.

dusk sundial
#

its impossible for people to understand what ur question is now

#

id suggest u create a new thread, if u still have a question

#

(or why did u reopen the thread?)

hasty shadow
#

no reason

#

didnt know it could be opened again

#

someone just delete this

dusk sundial
#

haha alright ๐Ÿ™‚