Data Structure Using Java





Codersarts offers Java programming assignment help, Java programming expert help, Java web programming help, Java development. We are a group of top coders and developers, providing the best service with expertise in the specific domain of technology. instant help support.


(A) Implement generic class ArrayStack as discussed in the lectures having following

methods:


constructor, push, pop, peek, isEmpty, copy constructor, reallocate (private method).

Also add following methods to this class:


size: returns number of elements in the stack.

contains: Search an element in the stack. If found returns true, else returns false.

clear: Deletes all elements of the stack and make it empty stack.


(B) Implement generic class ArrayQueue as discussed in the lectures having following methods:


constructor, copy constructor, offer, poll, peek, isEmpty, reallocate(private), iterator.

Inner class Iter that implements interface Iterator having methods: constructor,

hasNext, next.


Also add following methods to the ArrayQueue class:

size: returns number of elements in the queue.

contains: Search an element in the stack. If found returns true, else returns false.

clear: Deletes all elements of the stack and make it empty stack.


(C) Write a class called PalindromeChecker having method isPalindrome having a parameter line of type String. The method changes each uppercase letter of line to lowercase, and places each letter of the String line in a queue and also onto a stack. The program should then verify whether the line of text is a palindrome. Include method main to check several Strings, whether each one is a palindrome or not.



Get help in Java assignment, java project and java programming then you can contact us at contact@codersarts.com and get an instant help with an affordable prices.

Contact Us

Tel: (+91) 0120  4118730  

Time :   10 : 00  AM -  08 : 00 PM IST 

Registered address: G-69, Sector 63, 

 Noida - 201301, India

We Provide Services Across The different countries

USA    Australia   Canada   UK    UAE    Singapore   New Zealand    Malasia   India   Ireland   Germany

Terms and Conditions        Privacy Policy    Pricing Policy       Refund Policy         COPYRIGHT © 2021

Sofstack Technology Solutions Pvt. Ltd.

  • CodersArts | Linkedin
  • Instagram