Last active
August 21, 2019 16:01
-
-
Save ecojuntak/a5e52334d22f645da20873086072ba2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Usage | |
Write this file into `Main.java`: | |
```java | |
import com.gojek.bootcamp.money.Money; | |
public class Main { | |
public static void main(String[] args) { | |
} | |
} | |
``` | |
Build our library, using the build instruction above, then copy the `money.jar` from `build/libs` to same directory | |
as `Main.java`, then we can compile it using: | |
``` | |
javac -classpath money.jar Main.java | |
``` | |
We can run the example program using: | |
``` | |
CLASSPATH=money.jar:. java Main | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment