clojure Java interop Calling an instance method on a Java object

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!


You can call an instance method using the . special form:

(.trim " hello ")
;;=> "hello"

You can call instance methods with arguments like this:

(.substring "hello" 0 2)
;;=> "he"

Got any clojure Question?