I recently completed an introductory course in Java, and while I understand concepts like loops, methods, and arrays, I often struggle when applying them to solve problems. It seems like I fail about 80% of the time when it comes to exercises that require integrating these concepts. What are some effective ways or practices I can adopt to improve my coding skills and become more comfortable with programming?
5 Answers
From what you said about understanding the basics, my suggestion is: as soon as you learn something new, try it out in a tiny project immediately. Don’t hesitate, just dive in! Asking for small project ideas based on what you just learned can also be beneficial. It’s good to combine previous topics so that all the skills you've learned start to mesh together. Best of luck!
It sounds like you're getting lost in combining concepts, which is super common. I recommend starting with easy problems and really analyze your approach. Try to identify patterns that help with problem-solving. It's also okay to mess up! When you hit a wall, don’t stress; iterate on your first attempt and try optimizing the solution. You'll soon start seeing progress.
You're not really failing—you’re learning! When you hit errors, it’s a chance to figure out what went wrong. Start talking through your code logic using something like Rubber Duck Debugging—explain it as if you’re teaching it to someone else. It can really clarify your thinking. And definitely don’t shy away from making mini-projects to practice applying new skills right away!
Honestly, the key here is just practice—lots of it! You could find similar questions online and dive into existing threads. Also, some good reads are "Think Like a Programmer" and "The Pragmatic Programmer". These can often give you a new perspective on problem-solving and coding practices.
A great way to boost your skills is to pick a project—any project that interests you! Start coding it out; the more you practice, the better you'll get. If you’re struggling with exercises, double-check that you really understand the basics like function calls and loops. Break problems down into simpler tasks. For instance, write out what you need to do in plain English, then transform that into pseudocode before writing actual code. It helps to clarify your thought process!
I see what you're saying! I can solve basic exercises individually, but the real challenge hits when they combine multiple concepts. That's where I usually trip up.

Thanks for the advice! I really appreciate the tips, especially about diving into mini-projects.