CSD 436 Assignment 2 – Abstract Data Types

$30.00

Download Details:

  • Name: Assignment2-l4ejeq.zip
  • Type: zip
  • Size: 34.78 KB

Category:

Description

Rate this product

For this assignment you are to implement the “Parsing with a Stack” algorithm from section 3.4 of the course text. Your implementation must be written in java. Your parse method should be a static method named “Parsing” in a class named, “Assignment2”. Method “Parsing” must take a single String parameter that contains space-separated brackets, and return a boolean value.

Valid brackets include “(“, “)”, “{“, “}”, “[“, “]”, “<“, and “>”.

If the brackets in the String parameter match up with one another, method “Parsing” returns boolean true. Otherwise, it returns false.

The one and only public method in Assignment2 is Parsing. I will be testing it with my own set of test string.