Advertisement
Zizalik

CurrencyTXTJSON

May 16th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package kontrolltoo;
  7.  
  8. public class CurrencyTxt {
  9. //Currency,CurrencyFullName,Country,Region,Sub-Unit,Symbol
  10.  
  11. private String Currency;
  12.  
  13. private String CurrencyFullName;
  14. private String Region;
  15. private String Country;
  16. private String SubUnit;
  17. private String symbol;
  18.  
  19.  
  20. public CurrencyTxt(){}
  21.  
  22. public CurrencyTxt(String name, String fullname, String country, String symbol, String region, String SubUnit)
  23. {
  24. this.Currency=name;
  25. this.CurrencyFullName=fullname;
  26. this.Country=country;
  27. this.symbol=symbol;
  28. this.Region=region;
  29. this.SubUnit=SubUnit;
  30. }
  31.  
  32.  
  33. // omadused
  34. public String getName() {
  35. return Currency;
  36. }
  37.  
  38. public void setName(String name) {
  39. this.Currency = name;
  40. }
  41.  
  42. public String getCountry() {
  43. return Country;
  44. }
  45.  
  46. public void setCountry(String country) {
  47. this.Country = country;
  48. }
  49.  
  50. public String getFullname() {
  51. return CurrencyFullName;
  52. }
  53.  
  54. public void setFullname(String fullname) {
  55. this.CurrencyFullName = fullname;
  56. }
  57.  
  58. public String getSymbol() {
  59. return symbol;
  60. }
  61.  
  62. public void setSymbol(String symbol) {
  63. this.symbol = symbol;
  64. }
  65.  
  66. public String getRegion() {
  67. return Region;
  68. }
  69.  
  70. public void setRegion(String region) {
  71. this.Region = region;
  72. }
  73.  
  74. public String getSubUnit() {
  75. return SubUnit;
  76. }
  77.  
  78. public void setSubUnit(String SubUnit) {
  79. this.SubUnit = SubUnit;
  80. }
  81.  
  82. @Override
  83. public String toString(){
  84.  
  85. return String.format("\n name: %s \n fullname: %s \n country: %s \n symbol: %s \n"
  86. ,Currency, CurrencyFullName,Country, symbol);
  87. }
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement