Skip to content

Commit 7e5a6c3

Browse files
committed
v0.0.0
1 parent 887d056 commit 7e5a6c3

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
Convert amount in letter
44

55
```java
6-
String result = AmountToWord.convertTo( 123456789, AmountConvertion.BURMESE);
6+
String result = AmountToWord.convertTo( 123456789, AmountConversion.BURMESE);
77
// output => တစ်ထောင်နှစ်ရာသုံးဆယ့်လေးသိန်းငါးသောင်းခြှောက်ထောင်ခုနှစ်ရာရှစ်ဆယ့်ကိုးကျပ်
88
```

src/main/java/AmountToWord.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ protected AmountToWord(){
77

88
}
99

10-
static AmountToWord getConverter(AmountConvertion convertion) throws Exception{
10+
static AmountToWord getConverter(AmountConversion convertion) throws Exception{
1111
switch (convertion){
1212
case BURMESE: {
1313
return new BurmeseAmountToWord();
@@ -24,24 +24,24 @@ static AmountToWord getConverter(AmountConvertion convertion) throws Exception{
2424
}
2525
}
2626

27-
static AmountToWord getConverter(int amt, AmountConvertion convertion) throws Exception{
27+
static AmountToWord getConverter(int amt, AmountConversion convertion) throws Exception{
2828
return getConverter(convertion).setAmount(amt);
2929
}
30-
static AmountToWord getConverter(double amt, AmountConvertion convertion) throws Exception{
30+
static AmountToWord getConverter(double amt, AmountConversion convertion) throws Exception{
3131
return getConverter(convertion).setAmount(amt);
3232
}
33-
static AmountToWord getConverter(BigDecimal amt, AmountConvertion convertion) throws Exception{
33+
static AmountToWord getConverter(BigDecimal amt, AmountConversion convertion) throws Exception{
3434
return getConverter(convertion).setAmount(amt);
3535
}
3636

3737

38-
static String convertTo(int amt, AmountConvertion convertion) throws Exception{
38+
static String convertTo(int amt, AmountConversion convertion) throws Exception{
3939
return getConverter(convertion).setAmount(amt).convertInLetter();
4040
}
41-
static String convertTo(double amt, AmountConvertion convertion) throws Exception{
41+
static String convertTo(double amt, AmountConversion convertion) throws Exception{
4242
return getConverter(convertion).setAmount(amt).convertInLetter();
4343
}
44-
static String convertTo(BigDecimal amt, AmountConvertion convertion) throws Exception{
44+
static String convertTo(BigDecimal amt, AmountConversion convertion) throws Exception{
4545
return getConverter(convertion).setAmount(amt).convertInLetter();
4646
}
4747

@@ -62,7 +62,7 @@ AmountToWord setAmount(BigDecimal amt){
6262
abstract String convertInLetter();
6363
}
6464

65-
enum AmountConvertion{
65+
enum AmountConversion {
6666
BURMESE,
6767
CHINESE,
6868
ENGLISH

src/main/java/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public class Main {
22
public static void main(String[] args) throws Exception {
3-
String result = AmountToWord.convertTo( 123456789, AmountConvertion.BURMESE);
3+
String result = AmountToWord.convertTo( 123456789, AmountConversion.BURMESE);
44
System.out.println(result);
55
}
66
}

0 commit comments

Comments
 (0)