Great java coding excercises

D3x!

Banned
Joined
Jul 18, 2010
Messages
18,616
Reaction score
12
Location
pew pew pew
Hey all,

So does anyone have a particularly good place to find java exercises ranging from very beginner and up? (yes i know i can google and have)

that or post me great examples here and lemme have a swing at em

Thanks

(yes i posted in wrong section earlier)
 
Make a Sudoku solver. It's a lot of fun, and not that hard. Did it in my first year of CS.
 

Not_sure_if_serious.jpg
 
Make a Sudoku solver. It's a lot of fun, and not that hard. Did it in my first year of CS.

hmmm sounds good, not sure if I should attempt this just yet. it seems simple at first but you would not only be checking if the number is in the grid you are in but also in the horizontal and vertical row. also you couldn't just assign any value you wanted provided it doesn't clash as it will affect another grid. but I definitely want to save this one to do.
 
hmmm sounds good, not sure if I should attempt this just yet. it seems simple at first but you would not only be checking if the number is in the grid you are in but also in the horizontal and vertical row. also you couldn't just assign any value you wanted provided it doesn't clash as it will affect another grid. but I definitely want to save this one to do.

It is quite tricky, but very fun. The algorithm I used was called Backtracking. Basically, it brute forces its way through the puzzle.
 
It is quite tricky, but very fun. The algorithm I used was called Backtracking. Basically, it brute forces its way through the puzzle.

I reckon when I am done on the next 2 chapters of my book I can struggle my way through something like this
 
Make a Sudoku solver. It's a lot of fun, and not that hard. Did it in my first year of CS.
+1 on the Sudoku solver. This is a fun exercise that makes you think.

If you are just starting out then do a Sudoku CHECKER. You give it a file with the sudoku puzzle all written out (each column separated by a space and each row on a new line) and it checks to see whether or not the puzzle answer is valid.
 
Last edited:
You can find some great problems here http://projecteuler.net/problems. You just have to search for the problems in your difficulty class.

thanks I actually read up on that one while searching and I saw it was not recommended for beginners but I wasn't aware you could choose your difficulty.

But otherwise so far for 2 weeks (and limited time therein) of learning I feel I know quite a lot, at least compared to what I used to know.
 
http://www.dreamincode.net/forums/forum/32-java/

Not exactly what you were asking for, but a great site for programmers. Very helpful community. They have a tutorial section which might help you with what you're looking for. They also have a project idea section but I believe that is more advanced then what you're looking for. You could also post this question there, I'm sure they'll give you some ideas.

Edit: Just double checked the project idea section, they do have beginner projects.
 
Last edited:

lol yeah thanks I been working through some of them like lying in bed late at night and stuff (yes I wanna learn that badly ;) )

so yeah if anyone knows of any JAVA apprenticeship/internship/learning opportunities lemme know :p (we can dream can't we :(
 
Hey all,

So does anyone have a particularly good place to find java exercises ranging from very beginner and up? (yes i know i can google and have)

that or post me great examples here and lemme have a swing at em

Thanks

(yes i posted in wrong section earlier)

On youtube, look for a user called TheNewBoston - this guy makes tutorials for a living. He has literally 1000's of videos showing people how to program, animate etc. His JAVA tutorials are really good.
 
On youtube, look for a user called TheNewBoston - this guy makes tutorials for a living. He has literally 1000's of videos showing people how to program, animate etc. His JAVA tutorials are really good.

thanks will checks it out :)
 
so steadily making my way through codingbat, some of them kick my ass though :p but will come back to those.

then onto project euler.
 
Top
Sign up to the MyBroadband newsletter
X