Question: CMSC 35 Data Structures and Algorithms Programming Project 1 The first programming project involves writing a program to determine whether another Java source code file

CMSC 35 Data Structures and Algorithms Programming Project 1 The first programming project involves writing a program to determine whether another Java source code file has matching delimiters. The delimiters that must match are parentheses, braces and square brackets. The program should consist of two classes. The first class that encapsulates the input file should contain the following public methods: A constructor that accepts the file name of the Java source file to be tested and throws a FileNotFoundException if the file does not exist A method that returns the next character in the file excluding characters that are inside either type of comment and characters in either character or string literals A method that returns a string containing the current line number and character number of the current character You may add any additional private methods that are required. The second class should contain the main method. It should read in the file name from the keyboard until a valid file name is entered and then create an object of the first class. It should then repeatedly call the method that returns the next character until it returns a null character indicating the end of the file or until4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!