app/src/main/java/com/smedic/tubtub/fragments/PlaylistsFragment.java
private String extractUserName(String emailAddress) {
        if (emailAddress != null) {
            String[] parts = emailAddress.split("@");
            if (parts.length > 0) {
                if (parts[0] != null) {
                    return parts[0];
                }
            }
        }
        return "";
    }
/**
     * Extracts user name from email address
     *
     * @param emailAddress
     * @return
     */
Extracts user name from email address
@param emailAddress
@return
Extracts user name from email address @param emailAddress @return
private String extractUserName(String emailAddress) {
        if (emailAddress != null) {
            String[] parts = emailAddress.split("@");
            if (parts.length > 0) {
                if (parts[0] != null) {
                    return parts[0];
                }
            }
        }
        return "";
    }
private String extractUserName ( String emailAddress ) { if ( emailAddress != null ) { String [ ] parts = emailAddress . split ( "@" ) ; if ( parts . length > 0 ) { if ( parts [ 0 ] != null ) { return parts [ 0 ] ; } } } return "" ; }
Extracts user name from email address
 @param emailAddress
 @return
Extracts user name from email address @param emailAddress @return