Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package kontrolltoo;
- public class CurrencyTxt {
- //Currency,CurrencyFullName,Country,Region,Sub-Unit,Symbol
- private String Currency;
- private String CurrencyFullName;
- private String Region;
- private String Country;
- private String SubUnit;
- private String symbol;
- public CurrencyTxt(){}
- public CurrencyTxt(String name, String fullname, String country, String symbol, String region, String SubUnit)
- {
- this.Currency=name;
- this.CurrencyFullName=fullname;
- this.Country=country;
- this.symbol=symbol;
- this.Region=region;
- this.SubUnit=SubUnit;
- }
- // omadused
- public String getName() {
- return Currency;
- }
- public void setName(String name) {
- this.Currency = name;
- }
- public String getCountry() {
- return Country;
- }
- public void setCountry(String country) {
- this.Country = country;
- }
- public String getFullname() {
- return CurrencyFullName;
- }
- public void setFullname(String fullname) {
- this.CurrencyFullName = fullname;
- }
- public String getSymbol() {
- return symbol;
- }
- public void setSymbol(String symbol) {
- this.symbol = symbol;
- }
- public String getRegion() {
- return Region;
- }
- public void setRegion(String region) {
- this.Region = region;
- }
- public String getSubUnit() {
- return SubUnit;
- }
- public void setSubUnit(String SubUnit) {
- this.SubUnit = SubUnit;
- }
- @Override
- public String toString(){
- return String.format("\n name: %s \n fullname: %s \n country: %s \n symbol: %s \n"
- ,Currency, CurrencyFullName,Country, symbol);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement