package Ġcom . and deg . dis counter . discount Ċ Ċ import Ġjava . io . File Ċ import Ġjava . math . BigInteger Ċ Ċ object ĠMonth ly Discount Wallet Singleton Ġ{ ĊĊĠĠĠ Ġprivate Ġconst Ġval ĠW AL LET _ VALUE _ FILE _ PATH Ġ= Ġ" src / main / resources / monthly Discount Wallet . txt " ĊĊĠĠĠ Ġvar Ġvalue : ĠBigInteger Ġ= Ġload Wallet Value ( WAL LET _ VALUE _ FILE _ PATH ) ĊĠĠĠĠĠĠĠ Ġprivate Ġset ĊĊĠĠĠ Ġfun Ġload ( filePath : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġvalue Ġ= Ġload Wallet Value ( filePath ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġload Default () Ġ{ ĊĠĠĠĠĠĠĠ Ġvalue Ġ= Ġload Wallet Value ( WAL LET _ VALUE _ FILE _ PATH ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġload Wallet Value ( filePath : ĠString ) Ġ= ĠBigInteger . valueOf ( read Number FromFile ( filePath ). to Long ()) ĊĊĠĠĠ Ġprivate Ġfun Ġread Number FromFile ( filePath : ĠString ) Ġ= ĠFile ( filePath ). read Lines ()[ 0 ] Ċ Ċ } Ċ