r/learnjava • u/Adorable_Pickle9416 • 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
15
u/OneBadDay1048 Oct 20 '24
I know it's a question that gets asked here a lot
But asks anyway instead of searching. Check out the automod comment.
-8
u/Adorable_Pickle9416 Oct 20 '24
i just cant learn.. i admit i think im dumb .
i wanna learn it but no matter how hard i learn nothing get into my mind. i sat hours upon hours and cant learn anything
1
u/Patrick-T80 Oct 20 '24
Are you sure, you are interested in programming and writing software? Java at base level is not very difficult to grasp. Other than primitive type, have you understand the concept of object?
1
u/InviolateQuill7 Oct 22 '24
How you view learning is an important part of success. Learning to code is essentially learning a new way to think, a new language is just as abstract as a physically spoken language. It is important that you start promoting your success rather than putting it down. Everyone learns at a different pace, if you expected to the be Usain bolt of Java, think again.
Many of us who understand code better than others, often failed more than others. Getting good at something doesn't mean your an intrinsic expert on the topic, but learning from someone who often has experience will tell you we all share something in common: failure.
You likely have no guidance, and probably feel interjected from watching an overwhelming abundance of videos or reading which tells you "type this" rather than "understand this". Coding isn't for everyone, but the fact you came here says something.
Don't mistake your initial interest with your temporary interest in coding. Many of us had that feeling like "i can earn a lot of money doing this" or "i can code my own game"... start with something easier...
Being mindful of your progress should be small steps, you'll likely not be coding a full game engine any time soon. As long as your are consistently trying you'll see your confidence with coding improve.
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/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.
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/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.
6
3
u/AutoModerator Oct 20 '24
It seems that you are looking for resources for learning Java.
In our sidebar ("About" on mobile), we have a section "Free Tutorials" where we list the most commonly recommended courses.
To make it easier for you, the recommendations are posted right here:
MOOC Java Programming from the University of Helsinki
accompanying site CaveOfProgramming
accompanying site NewThinkTank
Hyperskill is a fairly new resource from Jetbrains (the maker of IntelliJ)
Also, don't forget to look at:
If you are looking for learning resources for Data Structures and Algorithms, look into:
"Algorithms" by Robert Sedgewick and Kevin Wayne - Princeton University
Coursera course:
Coursebook
Your post remains visible. There is nothing you need to do.
I am a bot and this message was triggered by keywords like "learn", "learning", "course" in the title of your post.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/TheFaustX Oct 20 '24
You need to solve problems, starting small and going bigger and broadening your skill set. Just reading anything and never applying it won't make it stick that is why people recommend doing these courses with exercises.
Just trying to memorize stuff won't help you need to apply your knowledge yourself. The basics should stick pretty well when you do the little exercises in the mooc.
1
u/YacineLim Oct 21 '24
Not understanding what you do, the logic behind a program, or how Java works, in general, is a big problem, you have to understand, the concepts of class and objects, a key thing in every object oriented programming languages, you have to understand methods, Conditions, loops etc, you have just to ask the Wright question, AI models are very useful for this,
Testing your knowledge, don't just copy past programs and try them. You will never understand that way, tackle problem by yourself, and when you face issues, ask about them, put your code in this sub for example, ask AI models, but be careful, util you start understand the logic behind each class, the logic behind their methods etc.
All of this at your pace, but with a lot of practice and you will see amazing results.
Good luck
1
u/YacineLim Oct 21 '24
Not understanding what you do, the logic behind a program, or how Java works, in general, is a big problem, you have to understand, the concepts of class and objects, a key thing in every object oriented programming languages, you have to understand methods, Conditions, loops etc, you have just to ask the Wright question, AI models are very useful for this,
Testing your knowledge, don't just copy past programs and try them. You will never understand that way, tackle problem by yourself, and when you face issues, ask about them, put your code in this sub for example, ask AI models, but be careful, util you start understand the logic behind each class, the logic behind their methods etc.
All of this at your pace, but with a lot of practice and you will see amazing results.
Good luck
1
u/YacineLim Oct 21 '24
Not understanding what you do, the logic behind a program, or how Java works, in general, is a big problem, you have to understand, the concepts of class and objects, a key thing in every object oriented programming languages, you have to understand methods, Conditions, loops etc, you have just to ask the Wright question, AI models are very useful for this,
Testing your knowledge, don't just copy past programs and try them. You will never understand that way, tackle problem by yourself, and when you face issues, ask about them, put your code in this sub for example, ask AI models, but be careful, util you start understand the logic behind each class, the logic behind their methods etc.
All of this at your pace, but with a lot of practice and you will see amazing results.
Good luck
•
u/AutoModerator Oct 20 '24
Please ensure that:
Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
You include any and all error messages in full - best also formatted as code block
You ask clear questions
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.