Skip to content

Commit

Permalink
Bug correction on day number parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
louisld committed Nov 1, 2020
1 parent 9f6b7f4 commit 05bc805
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public static String numberToJapaneseString(int number) {

if(strNumber.charAt(0) == '0')
dix = "";
if(strNumber.charAt(0) == '1')
strNumber = "0" + strNumber.charAt(1);

return numbers[Integer.parseInt(String.valueOf(strNumber.charAt(0)))] + dix + numbers[Integer.parseInt(String.valueOf(strNumber.charAt(1)))];
}
Expand Down

0 comments on commit 05bc805

Please sign in to comment.