We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 400a336 commit 685ba20Copy full SHA for 685ba20
1 file changed
Random Password Generator.java
@@ -0,0 +1,14 @@
1
+import java.util.*;
2
+
3
+public class PasswordGen {
4
+ public static void main(String[] args) {
5
+ String chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#$%";
6
+ Random r = new Random();
7
+ String pass = "";
8
9
+ for (int i = 0; i < 10; i++)
10
+ pass += chars.charAt(r.nextInt(chars.length()));
11
12
+ System.out.println("Generated Password: " + pass);
13
+ }
14
+}
0 commit comments