I have a List<report>
in Java and I want to change it to List<graph>
in case that
class report {
String date;
String type;
String count;
}
class graph{
String date;
String numberA;
String numberB;
String numberC;
}
for example i have :
date type count change it into > date numberA numberB numberC
03/21 A 8017 03/21 8017 5019 0
03/21 B 5019 03/22 5001 0 8870
03/22 A 5001 03/23 0 8305 0
03/22 C 8870 03/24 1552 2351 8221
03/23 B 8305
03/24 A 1552
03/24 B 2351
03/24 C 8221
I know that with some if (condition) and iteration it can be possible but is there another solution for this?
any answer will be appreciated.