That's strange, both work for me. user=> (.substring (StringBuilder. "i must be blind") 4) "st be blind" user=> (.substring (StringBuilder. "i must be blind") (int 4)) "st be blind"
On Jun 24, 9:59 pm, CuppoJava <patrickli_2...@hotmail.com> 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 > > Thanks for your help > -Patrick --~--~---------~--~----~------------~-------~--~----~ 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 Note that posts from new members are moderated - please be patient with your first post. 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 -~----------~----~----~----~------~----~------~--~---