1 Reply Latest reply: Feb 2, 2008 12:20 PM by 791266 RSS

    Creating class file to pare displayName

    807603
      Hi, I'm obviously not a programmer but need to cut down a returned LDAP attribute, displayName. Currently it is last, first (company division). I'd like to cut off (company division)

      I already have something like this.
      public class StLdapCustomizedAttributes 
      
      { 
      
      public static String displayName (String givenName, String sn) 
      
      { 
      
      String result = sn + ", " + givenName; 
      
      return result; 
      
      } 
      
      } 
      can I do something like:
      (String displayName)

      {

      String result = displayName - "() " ;

      return result;
      ???? Sorry it's not cool!