If I run what you wrote it highlights PImage[] img = new PImage[filenames.length];
and gives me NullPointerException error.
If I run what you wrote it highlights PImage[] img = new PImage[filenames.length];
and gives me NullPointerException error.