# Practice Problems

Mitch Krah

Ranch Hand

Posts: 41

posted 11 years ago

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.

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

posted 11 years ago

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

Nick George

Ranch Hand

Posts: 815

posted 11 years ago

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 ]

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 ]

I've heard it takes forever to grow a woman from the ground