Calling java functions from Clojure -
I can use (.toUpperCase "GOOD") in the closure, because "GOOD" is Java string, and Java UpperCase is the string in the method.
I can also use the java function as a way of calling (java.io.file / separator) from the closure.
But, why do not I (java.lang / object wait3) or (java.lang.system/println "hi")?
- Can not we use all Java functions from the closure?
- If not, then there is a rule to call them? If so, where are the references for those tasks?
You can use all Java functions to see the closest page of the closure.
Specifically, you need to get exactly the right words based on sentences, for example the way you are building Java, eg. To execute the println method on the stable member "out" from Java.lang.System:
(. Println (system / out) "Hi")
< / Div>
Comments
Post a Comment