here this is my random mail generator code, I would like to save that random mails, how can I do that?
public class stupit {
public static void main(String[] args) {
Random randomGenerator = new Random();
for (int i=1; i<=5; i++) {
int randomInt = randomGenerator.nextInt(1000);
System.out.println("username"+randomInt+"@gmail.com");
}
}
}
Output is:
username394@gmail.com
username429@gmail.com
username70@gmail.com
username419@gmail.com
username744@gmail.com
how to save these out put like a = username394@gmail.co , b=username429@gmail.com .....