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

Published: 02 December 2020
on channel: 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/


On this page of the site you can watch the video online Practice 9: Randomized String Creator (Basic Java Programming 30) with a duration of hours minute second in good quality, which was uploaded by the user Basic Java Programming for Beginners 02 December 2020, share the link with friends and acquaintances, this video has already been watched 9 times on youtube and it was liked by 0 viewers. Enjoy your viewing!