Hi Adrian,

Here is one way:

  (-> (into-array ["one" "two"]) (class) (.getComponentType))
-> java.lang.String
(-> (to-array ["one" "two"]) (class) (.getComponentType))
-> java.lang.Object

Stu

>
> I have a java object that either contains a String or an array of  
> Strings.
>
> (instance? java.lang.String obj... works fine for the String,
>
> but how would I check for the String Array?
>
> Thanks, Adrian.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to