This is a fully working dynamic stack program example. The stack size is increased on overflow and decreased accordingly when empty space is more than 66% on pushing some element.
There is an interface to control the operations on stack. To make dynamic stack, the array is referenced to a new array with deferent size that is temporary. Other help comment are also present right in the code.
If you like this work, drop a comment.
Another version in which stack index variable starts from -1 is here .
input integer and output sum of digits in the integer.
Pyramid of ABCDE 🙂
Occurrence of string in a text from file.
Reading a text file
Writing to a text file
Decimal to Binary convertor
Frequency of elements in an array.
Here is a helpful dateProgram.java file, it has two classes,
DateClass and Student class working together, will be little help in OOP concept,
I’ve inserted comments to make some working easy to understand,
still if you have some some problem understanding leave comment. I’ll answer.
Here is another project, helpful gadget for PrayerTiming, and Visualizing your TimeTable.
Download PrayerTiming Visual Calendar