In this program you are going to read in a file and you are


Please do this in java

In this program, you are going to read in a file, and you are going to parse it onto a stack and determine if it is syntactically correct.

You will check for all open and close curly braces, open and closed parentheses, and you will check for all double quotes.

You should also allow the user to choose their own file.

This should be done graphically. Please use your own implementation of a stack.

Start with something like this:

public class MainFrame {

public static void main(String[] args) {

// Create an instance of the frame

JFrame myFrame = new JFrame("Basic Example");

// set the default close operation (i.e. when they click the x button) myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

// add the panel to the frame myFrame.getContentPane().add(new MainPanel());

// this make sure whatever is in the panel fits in the frame myFrame.pack();

// make sure the frame is visible - it's not visible by default myFrame.setVisible(true);

}

}

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: In this program you are going to read in a file and you are
Reference No:- TGS02891338

Expected delivery within 24 Hours