applicant-facing-gdo/src/main/java/com/girlsdayout/applicationform/model/Applicant.java
public String generateRecordId() {
        String characters = "01234567890abcdefghijklmnopqrstuvxyz";
        StringBuilder sb = new StringBuilder(8);

        //grabs a random character from characters string 8 times.
        for(int i = 0; i < 8; i++){
            int index = (int)(characters.length() * Math.random());
            sb.append(characters.charAt(index));
        }

        return sb.toString();
    }
//method that is called by setRecordId to generate a random 8-digit ID.
method that is called by setRecordId to generate a random 8-digit ID.
method that is called by setRecordId to generate a random 8 - digit ID .
public String generateRecordId() {
        String characters = "01234567890abcdefghijklmnopqrstuvxyz";
        StringBuilder sb = new StringBuilder(8);
        for(int i = 0; i < 8; i++){
            int index = (int)(characters.length() * Math.random());
            sb.append(characters.charAt(index));
        }
        return sb.toString();
    }
public String generateRecordId ( ) { String characters = "01234567890abcdefghijklmnopqrstuvxyz" ; StringBuilder sb = new StringBuilder ( 8 ) ; for ( int i = 0 ; i < 8 ; i ++ ) { int index = ( int ) ( characters . length ( ) * Math . random ( ) ) ; sb . append ( characters . charAt ( index ) ) ; } return sb . toString ( ) ; }
method that is called by setRecordId to generate a random 8-digit ID.
method that is called by setRecordId to generate a random 8 - digit ID .
//grabs a random character from characters string 8 times.