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:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
how to save these out put like a = [email protected] , [email protected] .....