Free University of Bolzano/Bozen
Faculty of Computer Science - Bachelor in Applied Computer Science
Bachelor in Production Engineering
Introduction to Programming - A.A. 2005/2006

Exercise 3

Class and method definitions

Exercise 3A

Write a Java program that implements the following static methods for string manipulations that are useful for internet programming.

Furthermore, implement a method main that prompts the user for the needed data, calls the methods you have developed and prints out the resulting strings. Use JOptionPane.showInputDialog to get the user's input and println to print the output.


Exercise 3B

Define a class CD that handles data known about a CD, such as composer, title, publisher and owner.

The following methods are of interest:


Exercise 3C

Write a Java program that uses the class CD from the last exercise.
The class' main method should perform the following operations: