public String[] getGroupArrayNames() {
        synchronized (groupNames) {
            return Collections.unmodifiableList(groupNames).toArray(new String[groupNames.size()]);
        }
    }
public String [ ] getGroupArrayNames ( ) { synchronized ( groupNames ) { return Collections . unmodifiableList ( groupNames ) . toArray ( new String [ groupNames . size ( ) ] ) ; } }
Returns a String array for the group names that the roster entry
belongs to.

@return a String[] for the group names.