how do I randomly generate name in java

create a string of letters, and use the random number function to select letters from the string.

google is your friend. Whatever you want to do, someone has almost certainly already done it and posted the code.