save scores to file
This commit is contained in:
parent
6eed415262
commit
444dec7085
|
@ -92,7 +92,10 @@ public class Main {
|
|||
|
||||
PrintWriter printWriter = new PrintWriter(fileWriter);
|
||||
for (Score score : scoreList) {
|
||||
try {
|
||||
printWriter.printf(score.toString());
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
|
||||
printWriter.close();
|
||||
|
@ -100,7 +103,13 @@ public class Main {
|
|||
|
||||
public static void main(String[] args) throws IOException {
|
||||
|
||||
int[] productList = new int[]{70021762, 26740026};
|
||||
int[] productList = new int[]{
|
||||
56521840, 56521838, 59096052, 29362313, 40271605, 37626779, 36068160,
|
||||
26740026, 32868829, 27833954, 63619548, 58705201, 58705199, 10201710,
|
||||
49525768, 50537053, 39644137, 45238398, 63771190, 47933860, 29362313,
|
||||
39082735, 52404834, 59123369, 28674240, 41546872, 52874995, 40271605,
|
||||
37626779, 40546569, 26740026, 24564895, 30176677, 13008310, 47524311,
|
||||
52316458, 11380153, 32625236, 26210836, 40546570, 47484912, 37588133};
|
||||
for (Integer item : productList) {
|
||||
getScoresByItemId(item);
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ public class Score {
|
|||
@Override
|
||||
public String toString() {
|
||||
return score +
|
||||
";;;;;" + description + '\'' +
|
||||
";;;;;" + description +
|
||||
";;;;;" + advantagesCounter +
|
||||
";;;;;" + dissadvantagesCounter + "\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue