Lab 5 - February 4

 

To receive credit for this lab assignment, you must be finished by Tuesday, February 4, at 10:00 p.m.  After this time you will not receive any credit.

 

Instructions:

1.  Login to UNIX, and write a program to do the following:

    - Read a sentence from the user (You were told how to read from the keyboard and were sent some code)

    - Print the sentence as follows:

        a. All in upper case letters (toUpperCase method)

        b. All in lower case (toLowerCase method)

        c. Trim the sentence and then print the length (trim and length methods)

2.  Attach the file (.java) to an e-mail in Pine (Getting Started with Pine, PDF) and send the file to the ics111-lab@hawaii.edu account.

- control <J>, then control <T>allows you to browse and pick the file that you wish to attach

3.  Check the webpage to make sure that the e-mail arrived.  Here is the URL: 

               http://www2.hawaii.edu/~tp_200/bmf/ics111-lab.html

4.  Once I (TA) get the e-mail in my account AND I can verify it on the web, you will receive your lab participation point.

 

Link to the Java API -  to look up any methods of any class you would like to use.