-2
I have a main class that has auxiliary classes as attributes.
Example: Main class MoedasList
:
public class MoedasList {
public USD USD;
public USDT USDT;
public ARS ARS;
}
Each attribute is an auxiliary class with its individual attributes.
Example: Auxiliary class USD
:
public class USD {
public String code; //": "BRL",
public String codein; //": "BRL",
public String name; //": "Dólar Comercial",
public String high; //": "3,9766",
public String low; //": "3,9748",
public String varBid; //": "0,0021",
public String pctChange; //: "0,05",
public String bid; //": "3,9765",
public String ask; //": "3,9767",
public String timestamp; //": "1557873008",
public String create_date; //": "2019-05-14 21:00:05"
}
How I ride one ArrayList
of the main class MoedasList
?
I assembled the class this way to receive the data from a JSON.
I get the normal data, but now I’d like to assemble a ArrayList
.
Friend, it’s hard to know what you want to do. Try to explain your need better please.
– Douglas Benitez
i would like to return a list with all the attributes of the Moedalist class, and the atripipes of the Moedalis class are all separate classes with the Specification of each coin, with its attributes
– NewSystemsUnlimited