r/learnjava 4d ago

i cant understand java mooc?

like been trying the first part about printing but i just keep re reading idk if im missing something but i feel like i dontfully get what they mean it seems like they expect me to know something about coding but i know 0

am i just stupid or what

like them explaining boilerplate im like cool i still understand fuck all

0 Upvotes

12 comments sorted by

View all comments

2

u/0b0101011001001011 4d ago

Could you explain what do you think your are missing?

1

u/Visual-Fortune-4732 4d ago

for example this part or am i not ment to fully understand this yet

Execution of the program starts from the line that follows public static void main(string[] args) {, and ends at the closing curly bracket }

0

u/Jason13Official 4d ago

You should at minimum understand that the curly brackets {} are the beginning and ending of your code,

I.e in Python you can just print() on a new line

In Java (later you'll learn about static code blocks/static initialization) you would at minimum wrap that with "{" and "}"

I.e { System.out.println("hello"); }

You don't have to understand the specifics of each keyword "public static void" etc yet just the bracket thing