Assignment #3
Instructions
-
The purpose of this assignment is to create String variables (objects) and use String methods in Java.
-
See the
Java API's
Class String
for String methods
toUpperCase(),
toLowerCase(), and
substring().
-
Write a Java program for Exercise #1 and Exercise #2 in the slides.
-
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.)
-
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.
-
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.
-
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
-
The name of your file should be in the format: LastNameFirstName3.java
-
This should also be the name of your class that you use in your program.
-
Don't forget to include Java documentation (javadoc) comments in your program.
See the Java Coding Standard for details.
-
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