import java.io.BufferedReader;import java.io.FileReader;import java.io.FileWriter;import java.io.IOException;import java.util.ArrayList; public class Youtube{/** * Keeps track of whether the first reading has been performed. */protected boolean readFlag = false; /* * The main program, which can be executed from the command line */public static void main(String [] args){ int liLine = 0; int liDat..