On Wed, Jun 24, 2009 at 8:59 PM, CuppoJava <[email protected]>wrote:
> > Hi guys, > I'm having the hardest time figuring out why this won't run. I've been > staring at it for the last half hour, and it's only a single line. > Another pair of eyes would be beneficial I think. > > (.substring (StringBuilder. "i must be blind") 4) > (.substring (StringBuilder. "i must be blind") (int 4)) > > Both give me: > > java.lang.IllegalArgumentException: No matching method found: > substring for class java.lang.StringBuilder > Odd, I get the same error running against Clojure 1.0 Clojure 1.0.0- user=> (.substring (StringBuilder. "i must be blind") 4) java.lang.IllegalArgumentException: No matching method found: substring for class java.lang.StringBuilder (NO_SOURCE_FILE:0) user=> (.substring (StringBuilder. "i must be blind") (int 4)) java.lang.IllegalArgumentException: No matching method found: substring for class java.lang.StringBuilder (NO_SOURCE_FILE:0) -- Cosmin Stejerean http://offbytwo.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. 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 -~----------~----~----~----~------~----~------~--~---
