samedi 28 octobre 2017

comparing and displaying string from shortest to longest in java

I am writing a program which uses name.length method which will read in 3 different strings, calculate the number of characters in each string and list each string from least number of character to the highest number of characters. I also need to write this program using if and else statements or case and switch statements. Thanks for your help!

Aucun commentaire:

Enregistrer un commentaire