Practice 9: Randomized String Creator (Basic Java Programming 30)

Publié le: 02 décembre 2020
sur la chaîne: Basic Java Programming for Beginners
9
0

【Basic Java Programming 30】
Let's code! We're going to write a program that gets a randomized string. You can download an example code.

====================================
[Practice]
Write the program that we get a randomized string according to the condition that the user inputs.

[Specification]
Make sure you use two classes here.
・Class that you make user input on the prompt
・Class that you create randomized strings according to the user input

Display the "Do you need uppercase characters? (y or n): " message on the prompt first.

If a user inputs the "y" or "Y" on the prompt, the user can get the randomized string, including eight uppercase and lowercase characters. But if not, a user can only get the randomized string as eight lowercase characters.

If a user input the words besides the "y", "Y", "n", "N", show the user the "You inputted something besides y or n. So we will not use uppercase." message.

(Input)
y, Y: 8 uppercase and lowercase characters
n, N and the others: 8 lowercase characters
====================================


◆ What is null?
   • What is null? (Basic Java Programming 18)  

◆ Practice 9 (example) - code
https://github.com/makoto-sabay/pract...

◆ Practice 9 (answer) - code
https://github.com/makoto-sabay/pract...

◆ Makoto Official Site
https://sabay-sabay.asia/


Sur cette page du site, vous pouvez voir la vidéo en ligne Practice 9: Randomized String Creator (Basic Java Programming 30) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Basic Java Programming for Beginners 02 décembre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 9 fois et il a aimé 0 téléspectateurs. Bon visionnage!