Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Practice Problems

 
Mitch Krah
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get ready for my Beginning Java Final and am looking for SIMPLE problems where I can practice Java syntax (e.g. for class, method, objects, etc.). Unfortunately, the two books that I have only provide problems that require 100s of lines of code (usually, with 3 lines that exercise the technique they are trying to teach).

Can anyone suggest a place where I can go to get simple problems to exercise the referenced items?

Your assistance is appreciated.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a list of free on-line Java tutorials and books that I have found useful. Many of them contain practice exercises of various sizes.
  • Sun's Java Tutorial
  • Introduction to Computer Science using Java by Bradley Kjell
  • Introduction to Programming Using Java by David J. Eck
  • Dick Baldwin's Java Programming Tutorials
  • Interactive Programming In Java by Lynn Andrea Stein
  • Bruce Eckel's Thinking In Java
  • JavaRanch's own Campfire Stories
  • Allen B. Downey's How To Think Like A Computer Scientist
  •  
    Nick George
    Ranch Hand
    Posts: 815
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Contest samples

    Here's a contest I was in last year... got third place...
     
    Nick George
    Ranch Hand
    Posts: 815
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Here's a few more I can remember:

    1. Take 2 input string which are numbers in base 13 (1-B), and multiply them together, printing the result in base 13. (no using converstion methods of Integer)

    2. Take an input number n, and consider an n x n grid. How many different ways are there to go from the bottom left corner to the top right corner, if the only legal moves are up and left?

    3. Take an input n, and print out an n-row pascal's triangle. Make sure it's spaced nice and pretty.

    If I think of anymore, I'll post them.
    [ November 28, 2004: Message edited by: Nick George ]
     
    Mitch Krah
    Ranch Hand
    Posts: 41
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you everyone. I am sure these suggestions will be quite helpful.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic