CS3101-3: Programming Languages: Java
Homework 1

Reading: Java in a Nutshell, chapters 1 & 2

DUE: Tuesday, Sept 16, 5PM

Goal:

  1. Write your first Java Appliction
  2. Practice commenting code
  3. Learn to use command line input/output
  4. Learn java basics.


1. Write a small Java program called Bio.java that prints out your name,
your e-mail address, and your year, and prints out a
small message describing your programming proficiency
and what your background is (eg, what programming 
languages you know, how well, etc).

2. Write a second program called Scrambler.java . This application 
prompts the user for a password and prints out a scrambled version of it. 
Use any scramble method you want, as long as you document it and make it hard to guess.
Hint to read in use:
BufferedReader in = new BufferedReader( new InputStreamReader(System.in) );
Then lookup the API for the Class.

3. Compile and run the programs (separately), and submit proof of its
functioning. You can do this either by submitting a 
screenshot or a "journal", "script", or "typescript" 
log (on Unix):

$ journal
Log started
$ <run your program here>
<program output>
$ exit
Journal ended

(If "journal" doesn't work on your system, try script or
typescript insteaad -- they all work roughly the same way.)

4. Follow the homework submission instructions on the class
homepage!

 

Good Luck.