I use a method which returns a list of Lists. This List contains 6 Lists, each List contains 3 String :
[[5, 0.01, 2], [7, 0.01, 3], [3, 0.02, 2], [8, 0.05, 3],[9, 0.1, 2], [6, 0.1, 3]]
Continuing from a previous answer...
But I have to split again this list in 3 differents values :
[3, 0.01, 2]
The main goal is to transform this list of object in list of Change. A Change :
public class Change {
private static final String value;
private static final String amount;
private static final String column;
...
}
I attempted but I think it's not the greatest way to accomplish :
List saisie = ServiceTableau.getInstance().deserialiser(quantites);
List<String> saisieToStrings = new ArrayList<String>();
for (Object object : saisieIHM) {
saisieIHMToStrings.add(object != null ? object.toString() : null);
}
Is there a system method to do this? I can't use external libraries
Changeshould be static?