Question: Create a Java program that analyzes a program and produces the output into another file. The program must retrieve the path to the .java file.
Create a Java program that analyzes a program and produces the output into another file. The program must retrieve the path to the .java file. Once the path to the file is found the program must figure out the length of the longest line is in the program. For example, working with a program called MainFile.java. Once it figures out the longest line in the code it will put the output into MainFile.java.stats and it will be located in the same directory. It doesn't matter what the contents of the .java file is as long as the output is correct in the .java.stats file. You can use your own .java files and folders to figure this program out. You must use List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
