Skip to content

Commit 016793b

Browse files
committed
Add Open JavaDocs as a clojure til.
1 parent 949b49e commit 016793b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
1111

1212
- [Evaluate One Liners With lein-exec](clojure/evaluate-one-liners-with-lein-exec.md)
1313
- [Expanding Macros](clojure/expanding-macros.md)
14+
- [Open JavaDocs](clojure/open-javadocs.md)
1415
- [Quick Clojure Docs](clojure/quick-clojure-docs.md)
1516
- [Specify the Directory of a Shell Command](clojure/specify-the-directory-of-a-shell-command.md)
1617
- [Splitting On Whitespace](clojure/splitting-on-whitespace.md)

clojure/open-javadocs.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Open JavaDocs
2+
3+
Clojure has all kinds of Java interop including a fancy function called
4+
`javadoc`. The `javadoc` function _opens a browser window displaying the
5+
javadoc for the argument_.
6+
7+
Thinking about using Java's `ArrayList` class, but want to read up on it
8+
first? Try
9+
10+
```
11+
> (javadoc java.util.ArrayList)
12+
true
13+
```
14+
15+
The javadoc page for
16+
[ArrayList](http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html)
17+
will be opened up in your default browser.

0 commit comments

Comments
 (0)