I have two methods in one class Method 1:Write BufferedImage data to a each folder inside directory B so that in each folder there are 1 image file.
BufferedImage Array = ...;
for(int a = 0;a < B.listfiles().length;a++)
write Arrray[a] to B.listfiles()[a];
Method 2: Write data already created from each folder in B to each folder in directory C
for(int a = 0;a < C.listfiles().length;a++)
write B.listfiles()[a] to C.listfiles()[a]
How do i implement Multithreading so that an image data can be transferred to a folder in C right after an image is written to a folder in B something like this:
write to folder 1 in B
write to folder 1 in C using data just created from folder 1.
write to folder 2 in B
write to folder 2 in C using data just created from folder 2.