r/learnjava • u/czechrussianchick • Nov 02 '19
Exercises for beginners
Hi, I am learning Java following the Java For Dummies book and I think it is going great, however, I am missing individual exercises for me to practice rather than just copy lines of code (even though I always try to implement my own examples and small changes into the given code so I can understand and learn it better).
What I have in mind is something in the lines of "Write a Java program that calculates the commission rates as per the table here...", starting from the basics (summing up numbers, printing words on the screen, using simple if-else statements, etc.) and getting harder. I have googled some stuff but I was wondering if you perhaps have some personal recommendations. It does not have to include the full solutions. Thanks!
3
u/desrtfx Nov 02 '19
Head over to /r/learnprogramming and check the FAQ/WIKI there. It has huge lists of project ideas.
Also, ditch the "for dummies" book and do a proper course, like the MOOC Object Oriented Programming with Java from the University of Helsinki. It has plenty graded exercises.
3
u/nelicow Nov 03 '19 edited Nov 03 '19
I did the Helsinki MOOC earlier this year. I learned a lot quickly. It has good pacing in introducing new concepts and mixes theory with exercises well. Great course, and free too!
For just some mini-projects/exercises you could also try http://codekata.com/
2
u/DoYouDestinyBrah Nov 02 '19
What about the exercises in the mooc? That’s exactly how they’re structured
1
1
Nov 02 '19
Just go to hackerrank and start 30 days of code with java. Trust me it's awesome for beginners.
0
Nov 03 '19
[deleted]
2
u/czechrussianchick Nov 03 '19
Thanks for the opinion. However, I am quite satisfied with the book, everything is thoroughly explained and the way it teaches makes sense to me, I just need more actual practice apart from the thorough explaining.
Ad 2.: I think we all know "for dummies" is meant in a funny, not a condescending way. And to be fair, I am a programming dummy as I picked programming up not because I am super into computer stuff or even remotely good at it (I'm basically an IT dinosaur), but because I wanted to challenge myself and learn something totally out of my range of abilities but I still need to do it at my own pace and that's why I actually like the book.
14
u/[deleted] Nov 02 '19
Hyperskill is pretty decent, it builds up from the basics to working projects.