In the Tech Talk 1 Challenge first required me to build my own Stack and Queue classes, I would later use these to complete the other challenges.
Stack.java:
- Created an ArrayList
- Created methods
add
, pop
, peak
, length
, clear
, and display
Queue.java
Challenge 1
- Pretty simple operations
- Formatting the result was a challenge, you can view how I did it below:
Challenge 2
- Made use of enhanced for loops
- Used robust and state-of-the-art technology to create an algorithm to display the numbers in the required format
Challenge 3
- Pretty simple compared to the other two challenges, code below: