#Attempting a count down
20 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @long mantle! Please use
/closeor theClose Postbutton 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.
you're trying to declare a method inside another method
pay attention to your brackets
I know that but if i get rid of the main(string) this happens
the program still asks for it
you still need a main
it's the entry point
but you can't have methods inside methods
methods can only be inside types (classes, interfaces, enums, records)
uh you already have?
(although be careful, your method's going to break with a negative number)
ah ok
oh input, sorry i read that as implement
as mentioned before, main is the entry point to the program
java calls that for you
anything else you want to do, you need to do from main
ah ok thanks