Assignment #3

Instructions

  1. The purpose of this assignment is to create String variables (objects) and use String methods in Java.
    1. See the Java API's Class String for String methods toUpperCase(), toLowerCase(), and substring().
    2. Write a Java program for Exercise #1 and Exercise #2 in the slides.
    3. Continue to write a Java program that uses ** String variables and methods ** to output the following: (NOTE: If you do not use String variables and methods for this assignment, you will not earn full credit.)
      1. Your full name in all lowercase letters using a variable (use the variable from Exercise #1 that stores your full name) and the toLowerCase() method.
      2. Your full name in all uppercase letters using a variable (use the variable from Exercise #1 that stores your full name) and the toUpperCase() method.
      3. A hawaii.edu email address with your first name in lowercase letters, followed by a period, followed last your last name in lowercase letters using the substring() method and a variable (use the variable from Exercise #1 that stores your full name). For example, Bubba Suzuki would be: bubba.suzuki@hawaii.edu
    4. The name of your file should be in the format: LastNameFirstName3.java
    5. This should also be the name of your class that you use in your program.
    6. Don't forget to include Java documentation (javadoc) comments in your program. See the Java Coding Standard for details.
    7. See the syllabus for the Assignment Grading Guidelines for your program assignments.

Example Output

My name is: William McDaniel Albritton
My initials are: W. M. A. 
My name in lowercase letters is: william mcdaniel albritton
My name in uppercase letters is: WILLIAM MCDANIEL ALBRITTON
My email is: william.albritton@hawaii.edu

Click to validate the HTML code

Click to validate the CSS code