public static String generateRandomName(String prefix){
  StringBuilder sb=new StringBuilder();
  Random random=new Random();
  sb.append(prefix);
  for (int i=0; i < 5; i++) {
    sb.append('a' + random.nextInt(26));
  }
  return sb.toString();
}

public static String generateRandomName ( String prefix ) { StringBuilder sb = new StringBuilder ( ) ; Random random = new Random ( ) ; sb . append ( prefix ) ; for ( int i = 0 ; i < 5 ; i ++ ) { sb . append ( 'a' + random . nextInt ( 26 ) ) ; } return sb . toString ( ) ; }
generate a random name with the specified prefix .
