Practice 10: Password (Basic Java Programming 31)

preview_player
Показать описание
【Basic Java Programming 31】
Let's code! Write a program to get a password. You can download an example code.

--------------------
[Practice]
Write the program that we get a randomized password according to the condition that user input.

[Specification]
・Make sure you create two classes.
・The character counts are greater than or equals to 3, and they are less than or equals to 128.
・The character counts that the user wants
・The password consists of lowercase, uppercase, numbers, and symbols.
・A user can define the condition of the password. Users decide whether they need lowercase character or not. About uppercase, numbers, and symbols, a user can choose it likewise.
・Display the password on the prompt.

[Result]
Input the character counts (3-128):
15
Do you need lowercase characters? (y or n):
y
Do you need uppercase characters? (y or n):
y
Do you need numbers?
y
Do you need symbles?
y
5wxKqsvEeY&DMki
--------------------

◆ Practice 10 Example - download

◆ Practice 10 Password

◆ Makoto Official Site
Рекомендации по теме