- Add it in your root build.gradle at the end of repositories:
repositories {
...
maven { url 'https://jitpack.io' }
}
- on module app build.gradle
implementation 'com.github.alfianyusufabdullah:IndonesianCurrency:0.0.1'
/// 1.000.000
double amount = ...
String result = new IndonesianCurrency(amount).parse();
///Rp. 1.000.000
double amount = ...
String result = new IndonesianCurrency(amount).withRP(true).parse();
///IDR 1.000.000
double amount = ...
String result = new IndonesianCurrency(amount).withIDR(true).parse();
///Rp. 1 Juta
double amount = ...
String result = new IndonesianCurrency(amount).withRP(true).wrap().parse();
///IDR 1 Juta
double amount = ...
String result = new IndonesianCurrency(amount).withIDR(true).wrap().parse();
///1 Juta
double amount = ...
String result = new IndonesianCurrency(amount).wrap().parse();