Skip to content

Instantly share code, notes, and snippets.

@ecojuntak
Last active August 21, 2019 16:01
Show Gist options
  • Save ecojuntak/a5e52334d22f645da20873086072ba2b to your computer and use it in GitHub Desktop.
Save ecojuntak/a5e52334d22f645da20873086072ba2b to your computer and use it in GitHub Desktop.
## 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