-
string length HELP PLZ!!
im a beginner to Java language:
i need to prompt the user to enter their name. then i need the program to print that name once for every letter in the name. im not sure how to set this up though i do know i need to use a loop and the string length comes into play,anyone plz help. i also need to prompt the user user to enter an even number after their name loop ends and if they dont enter an even number the loop needs to continue asking for one until they do if anyone can help with these questions that would be helpful.
-
To solve your first problem, please read up on for loops here: the for loop
To solve the second, please read up on while loops here: The while loop
Best of luck and welcome to the forum!