Choose the correct option. Which code segment should be used in place… — JAVA — TG.ME

Choose the correct option.

Which code segment should be used in place of missing Statement in the below code such that it displays the list of all root directories of the available system?

// Missing Statement

for(int i=0;i<dirs.length;i++)
System.out.println("Root["+i+"] : "+dirs[i]);
August 30, 2021 1.4K 2