CS 151: Object Oriented Programming

Homework #1

1. Java programming exercise:

a) Write a Java application that prints the string "Hello, World!" (without the quotes). The application must also be able to accept zero or more strings as parameters and print them out one per line after the line containing "Hello, World!". (50%)

b) Write a Java applet which displays "Hello, World!" in its text display area. The applet should also accept a string as an optional parameter which should be appended to "Hello, World!". It must also accept the color of the text as an optional parameter (use some default color if not specified). Create a sample HTML file that includes this applet. (50%)


NOTE: What to handin: