This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Practice Problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Practice Problems" Watch "Practice Problems" New topic
Author

Practice Problems

Mitch Krah
Ranch Hand

Joined: Sep 06, 2004
Posts: 41
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

Joined: Dec 10, 2001
Posts: 7023
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


  • [How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
    Nick George
    Ranch Hand

    Joined: Apr 04, 2004
    Posts: 815
    Contest samples

    Here's a contest I was in last year... got third place...


    I've heard it takes forever to grow a woman from the ground
    Nick George
    Ranch Hand

    Joined: Apr 04, 2004
    Posts: 815
    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

    Joined: Sep 06, 2004
    Posts: 41
    Thank you everyone. I am sure these suggestions will be quite helpful.
     
     
    subject: Practice Problems
     
    Similar Threads
    Tips on taking the SCJP exam
    Help Help Help !!!
    XML parsing
    query
    Java Web Browser