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

1

u/jlanawalt Oct 20 '24

It is fine to write on paper. Some have learned to program without a computer. You make your mind the interpreter. Your syntax may be a little off but it can help you reason through the logic.

Some go too far the other way and use the compiler and running the program, or worse AI, as a crutch.

Do both. Hopefully later you are comfortable and confident enough to just type in the code.