So I need to know is there a way to show the final password of this code to jTextField control, cuz when I tried I got issue char couldnt convert to String.
import java.util.Random;
Random r = new Random();
String alphabet = "qwertyuiopasdfghjklzxcvbnm";
for (int i = 0; i < 50; i++) {
System.out.println(alphabet.charAt(r.nextInt(alphabet.length())));
}