How can I call a java static method in clojure?
问题 I wish to call class on the String class. How can I access this static method? 回答1: You can call a static method using (ClassName/methodName arguments) . However class is not a static method, it's a java keyword and you don't need it in clojure. To get the Class object associated with the String class, just use String . 回答2: An example is worth 100 words: (. String (valueOf 1)) 回答3: Class doesn't have a "class" method, nor a "class" member. The symbol String is mapped to the class java.lang