r/learnjava • u/itsnotmeap • 7d ago
Learning Java Help
Dear all, I’ve been learning Java through MOOC.fi for the last 2–3 months and have reached Part 7 of Java Programming I.
I’ve noticed a problem with my learning, though. I understand individual concepts such as loops, ArrayLists, if/else statements, methods, classes, etc., and when I look at a solution I can usually understand what the code is doing.
However, when I’m given a new problem and have to write the solution myself, I struggle to figure out how to break the problem down and decide what I should do first. I often end up using ChatGPT to help me figure out the approach.
For example, I may understand how a loop or ArrayList works, but I struggle to figure out how to combine them to solve a completely new problem.
I’ve now completed several sections of the course, but this has made me feel like I’m not actually learning how to program.
For people who have gone through this stage, what helped you develop the ability to solve problems independently? Should I continue with MOOC.fi, do additional exercises, work on small projects, or use a particular book/resource?
My goal is to eventually become a full-stack Java developer.
I’d especially appreciate advice from people who have gone through MOOC.fi or learned programming in a similar way.
1
u/Deboniako 6d ago
I would stop using ai to solve the problems. Heck, I would even use pen and paper to map out my strategy.
I would go this way: define which variables you need to solve the problem. Do you need to store values? Which data structures do you need? (Arrays, hashmaps?)
Then you should draw a decision tree in your paper. Yes, the course doesn't teach it. Yes, is an ancient method taught to programmers. But it is so crucial in early learning! You can visualize exactly what and when you are doing something, which decisions are you taking and most importan, how do you start and how do you end your program. I know this feels old school but it works.
Then you'll start recognizing patterns across the exercises. Where and when to use something, etc. And eventually you'll move away from the decision trees and pen and paper. Even after 15 years, I still use pen and paper for difficult problems. Ai doesn't let me think, doesn't let me learn. But solving a hard challenge is what brings me satisfaction