Facebook   Twitter    e-mail newsletter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    


Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19

Thread: Great java coding excercises

  1. #1

    Default Great java coding excercises

    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)

  2. #2

  3. #3

    Default

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

  4. #4

    Default

    Quote Originally Posted by Fuzzbox View Post

  5. #5

    Default

    Quote Originally Posted by Sysem View Post
    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.

  6. #6

    Default

    anyone?

  7. #7

    Default

    Quote Originally Posted by Fuzzbox View Post
    I'm sure he is requesting 'JAVA' not JavaScript exercises.

  8. #8

    Default

    Quote Originally Posted by DevSign View Post
    I'm sure he is requesting 'JAVA' not JavaScript exercises.
    thus my picture

    java != javascript

  9. #9

    Default

    Quote Originally Posted by D3x! View Post
    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.

  10. #10

    Default

    Quote Originally Posted by Sysem View Post
    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

  11. #11
    Super Grandmaster porchrat's Avatar
    Join Date
    Sep 2008
    Location
    I don't know but it smells like lasagna
    Posts
    22,643

    Default

    Quote Originally Posted by Sysem View Post
    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 by porchrat; 31-07-2012 at 02:43 PM.
    The box said "requires Windows7 or better" so I installed Linux.

  12. #12

    Default

    You can find some great problems here http://projecteuler.net/problems. You just have to search for the problems in your difficulty class.

  13. #13

    Default

    Quote Originally Posted by DigiBanks99 View Post
    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.

  14. #14

    Default

    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 by shaunvw; 06-08-2012 at 04:12 PM.

  15. #15
    Senior Member
    Join Date
    Sep 2007
    Location
    Cowies Hill, Durban
    Posts
    105

    Default

    I like codingbat
    If an army marches on its stomach, then a force without lunch is weak.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. great java coding excercises
    By D3x! in forum Software and Web Development
    Replies: 2
    Last Post: 30-07-2012, 08:52 AM
  2. BMW key coding
    By essop1@gp in forum Motoring and Transportation: Cars, Bikes and Planes
    Replies: 5
    Last Post: 16-03-2011, 09:16 PM
  3. 10 Most Ineffective Excercises
    By blunomore in forum Health, Wealth, Leisure and Relationships
    Replies: 8
    Last Post: 03-10-2008, 01:13 PM
  4. Excercises that hurt:
    By Waaib in forum Health, Wealth, Leisure and Relationships
    Replies: 13
    Last Post: 14-08-2008, 07:01 PM
  5. Coding schemes 1,2,3,4
    By lmeissen in forum Vodacom Broadband and Mobile Internet | LTE, HSPA+, HSDPA, 3G, EDGE, GPRS and BIS
    Replies: 4
    Last Post: 15-09-2006, 05:07 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •