If you look here:

http://clojure.org/java_interop

you will see the following example:

(doto (new java.util.HashMap) (.put "a" 1) (.put "b" 2))

This produces the following error:

java.lang.IllegalArgumentException: No matching method found: .put

I believe the correct code is:

(doto (new java.util.HashMap) (put "a" 1) (put "b" 2))

-Julien

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to