• Post Reply Bookmark Topic Watch Topic
  • New Topic

Where can i find some good beginner Java exercises?  RSS feed

 
martin andreas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I am following the book Head First Java second edition to learn Java. I think the chapters are great in terms of teaching you.
However, the exercise problems aren't my taste. There is some good ones, but a lot are puzzles, such as you have a word bank to plugin into rest of a already written code,
or have to make code from existing, scattered lines. There is some example code in the book, which i rewrite and change up which helps.

When i did C++ last semester, what worked best for me was exercises where it gives you instructions on what a program should do
(write a program that does x, have part of code in class x and doing y,etc)

I liked this because you had to come up with the code yourself from scratch. Given, the final answer in the book might be a little different but that was another way to learn, by seeing
other ways the problem can be done.

What is a good place with some exercise problems, where im tasked to write a program? Then i can see the answer and compare with my code.

Thank you!
 
John Joe
Ranch Hand
Posts: 443
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a lot of exercises in this books.You may have a look.
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I have a problem with that book, that it teaches procedural programming before object orientation. Although the Deitel books have their own problems, at least they don't teach procedural programming. Be sure to get books called, “How To,” not, “for Programmers,” and get the “early objects” edition. There are better books than those, which I know, but they don't have such exercises.
Note: You can probably find different exercises in different editions.
 
Parag J Patankar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Does any free tests on internet are available subject wise ? It may help

Thanks
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bound to be. You could try websites like CodingBat (formerly called JavaBat). But theirs are exercises in writing algorithms, not in writing whole programs. There are doubtless many other such sites, but I haven't tried them.
 
Lisa Austin
Ranch Hand
Posts: 178
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HackerRank has good challenges.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!