Skip to content
Advertisement

Is there any way to write this small piece of code in java? [closed]

I am unable to understand the below code so, Is there any way to write this piece of code in java (Easy Manner)? Someone told me it is using the concept of multithreading? Is it true?

Thanks for helping me in advance!

JavaScript

This is the method for parseFileInfo:

JavaScript

Advertisement

Answer

JavaScript

For every fileExtension in fileTypeList parseFileInfo is called to perform intended task.

You can easily write a for each loop for this logic.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement