1 write a program that reads two words representing


1. Write a program that reads two words representing passwords from the Java console and outputs the number of characters in the smaller of the two. For example, if the two words are open and sesame, then the output should be 4, the length of the shorter word, open.

2. Write a program that reads a name that represents a domain name from the Java console. Your program should then concatenate that name with www. and .com in order to form an Internet domain name and output the result. For instance, if the name entered by the user is yahoo, then the output will be www.yahoo.com.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: 1 write a program that reads two words representing
Reference No:- TGS01601755

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)