Permalink
Browse files

ctor example

  • Loading branch information...
Jay Fields
Jay Fields committed Dec 24, 2011
1 parent 2a56ba3 commit d762764aa7c66224c2f9636f56f3c0ab709bb43d
Showing with 1 addition and 9 deletions.
  1. +1 −9 src/clojure/interop/core.clj
@@ -1,12 +1,4 @@
(ns interop.core)
(defn print-string [arg]
;;; calling a static method
(println (String/valueOf true))
;;; using an enum
(println (java.util.concurrent.TimeUnit/SECONDS))
;;; using a Java nested (inner) class. Note, in Clojure you
;;; use a $ instead of a .
(println (java.util.AbstractMap$SimpleEntry. "key" "val")))
(println (String. arg)))

0 comments on commit d762764

Please sign in to comment.