r/learnjava • • Oct 20 '24

learn java chapter one

I know it's a question that gets asked here a lot, but how do you learn Java? I started studying for a degree and the semester is about to start and I just don't know anything. Repeatedly watching the lectures, writing on the computer and not being able to understand afterwards what I did. Don't know anything basic like double int etc. I've already thought about starting to write on pages until my hand falls off, just write again and again until it gets into my crazy head

2 Upvotes

23 comments sorted by

View all comments

7

u/Kubanin Oct 20 '24

Here’s how I learned and am still learning. When tackling a problem—let’s say sorting an array—first, try to solve it on your own. Keep at it until you feel like there’s no way to solve it. If you manage to solve it, great! If not, search for an answer online. Once you find a solution, analyze it and replicate it exactly as it is. There’s no need to modify it—just replicate the solution around ten times. This repetition helps your brain memorize it by building a range of options.

The key point here is that you had some intention and experienced a mini emotional state while working through the problem, which helps your brain store the experience. After working on it, take a break for a couple of days don’t think about Java during that time. Then, come back refreshed and try a new challenge. That’s it!

-2

u/Adorable_Pickle9416 Oct 20 '24

thank you all for advice's

i think i will stick with the option to write on paper

3

u/Hi_Im_Ken_Adams Oct 20 '24

Write on paper? You need to be using a computer.

You learn by doing, not by reading.

1

u/Acceptable-Sound-495 Oct 24 '24

I study it it through online sessions, after the course i write everything down. Try some programing with the things i learned. If i fail i try to analyze whats wrong. If nothing works out for ne i try to take a look on chatgpt

 //pls no hate. If theres a better source for solutions please provide it to me :)

1

u/Adorable_Pickle9416 Oct 20 '24

https://java-programming.mooc.fi/ im starting using the link you guys sended me

and now im also write on paper things i need to remind me like big "S" and ; in the end of line

its not okay to write important things? or is a lot of work?

2

u/aqua_regis Oct 20 '24

If this is your way of learning it is okay.

Yet, exactly these things come second nature with ample practice. The more you practice, the better your fingers will remember.

Things like the capital "S" for String and the semicola at the ends of lines have to go into muscle memory, not into conscious memory. You have to reach the stage where you do not have to think about them anymore. This only goes through practice.

1

u/Hi_Im_Ken_Adams Oct 20 '24

When you program, you are typing on a computer, so yo can get muscle memory by using a computer to input actual code.

IDE’s also do auto formatting and highlighting which makes it easier to see what you are doing.

1

u/jlanawalt Oct 20 '24

It doesn’t matter for learning the concepts, and can slightly slow your writing but it is good practice to use the right syntax. Focus on the logic and concepts I’d syntax is tripping you up, but eventually you need both abs it’s good to practice the syntax along the way.