Hello guys, Istead of using 3 different files i want to use one arraylist of type File and put the 3 files in it, how to convert this code snippet so that it uses arraylist? please help.
File file1 = new File("src/application/png4.png");
File file2 = new File("src/application/png12.png");
File file3 = new File("src/application/Nightgif2.gif");
if(is_day == 1 )
{
currWeathSymbol.setImage(new Image(file1.toURI().toString()));
}
else if(is_day == 0)
{
currWeathSymbol.setImage(new Image(file2.toURI().toString()));
backgroundCond.setImage(new Image(file3.toURI().toString()));
}
