Saturday, January 14, 2012

Java programming question can someone help me.?

Write a Java program that will generate random four letter words. The words must consist of only lower case letters. The program will prompt the user to enter the number of words to generate. The program should request that the user enter a number between 1 and 500 and ensure that they comply. It will then generate the appropriate number of words neatly displaying them separated by spaces 10 words to a line. After the words are displayed the program must display the first word and also the last word if they were sorted alphabetically.

No comments:

Post a Comment