Entries by admin

In this lab, you will implement some useful functions using stacks. In particular, you will write functions using stacks for the following purposes: Reverse a string. Check whether a string is a palindrome. Check whether parenthesis and brackets are balan

In this lab, you will implement some useful functions using stacks. In particular, you will write functions using stacks for the following purposes: Reverse a string. Check whether a string is a palindrome. Check whether parenthesis and brackets are balanced in a string. Reverse a string First, you will write a function that uses a […]

In this problem we will create a user defined Java ArrayList holding student

In this problem we will create a user defined Java ArrayList holding student objects from the CUS 1126 class. Make sure you Import the ArrayList class into your source file i.e., import java.util.ArrayList. The class for students in CUS 1126 is defined as class Students{ String fname; //first name of student String lname; //last name […]