Skip to content

Commit 36a5365

Browse files
authored
Update README.md
1 parent 46f2e98 commit 36a5365

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

README.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,38 @@
11
# TCBM java API
22

3-
<hr>
4-
## Verion 1.0.1
3+
## Version 1.0.1
4+
55
## Factory Class CurrencyFactory
6+
67
## Moneys Enum Moneys
7-
## Cureency Interface Currency
8+
9+
## Currency Interface Currency
10+
811
## Main Class Main
912

1013
<hr>
1114

1215
# Methods
1316
<hr>
14-
<code>getCurrency(); //return Money name, selling price, buying price and date</code>
17+
18+
<code>getCurrency(); //return Money name, selling price, buying price and date</code>
1519

1620
## Usage
1721
<hr>
18-
<code> CurrencyFactory factory = new CurrencyFactory(Moneys.US_DOLLAR); //constructor not empty
19-
Currency cur = factory.getCurrency(); // get selected money unit current infos name,buying,selling,date
22+
<code> CurrencyFactory factory = new CurrencyFactory(Moneys.US_DOLLAR);
23+
24+
Currency cur = factory.getCurrency(); // get selected money unit current infos
25+
26+
String date = cur.getDate(); // 12/14/2018
27+
28+
String name = cur.getName(); // US DOLLAR
29+
30+
float buying = cur.getBuyingPrice(); // 5.3672
2031

21-
String date = cur.getDate(); // 12/14/2018
22-
String name = cur.getName(); // US DOLLAR
23-
float buying = cur.getBuyingPrice(); // 5.3672
24-
float selling = cur.getSellingPrice(); // 5.3887
25-
boolean isForex = cur.isForex(); // false dollar not forex</code>
32+
float selling = cur.getSellingPrice(); // 5.3887
2633

34+
boolean isForex = cur.isForex(); // false dollar not forex
35+
</code>
36+
<hr>
2737

2838

0 commit comments

Comments
 (0)