Object-Oriented Programming with Java


Back to Object-Oriented Programming with Java

1) How to compile and run Java programs in cs:
javac YourProgram.java // produces the .class file(s)
java YourProgram //executes the program

2) For every Exercise (week) create folder with proper name, for example, Ex1, Ex2, etc.
Add the following first line to the Java files:

package Ex1;

etc., respectively.

3) Please, send zip-file with your source code and screenshots to Alexei Andriashin (aandri@cs.joensuu.fi) and to me (koles@cs.joensuu.fi) before 24.00, Thursday.
Use your NAME and the Number of exercise in the file name: JohnDoe_demo1.zip

Points for program will be granted if the program can be succefully complied and executed.

Exercises

  1. Exercise 1

  2. Exercise 2

  3. Exercise 3

  4. Exercise 4 -- Updated 06.10.2009!

  5. Exercise 5

  6. Exercise 6

Source codes for examples in the book, "Introduction to Java Programming" (Prentice Hall, 7th Ed., 2009) by : Y.D. Liang.