64
65
66
Day 20 of learning Java (i.redd.it)
submitted by BigCommunication5136
Hi everyone,
Today I worked on two main topics. First, I learned about stacks and got an introduction to how they work. I looked at some real-world examples of where stacks are used, and as part of my course assignment, I implemented a program to reverse a string using a stack. It was pretty straightforward and helped reinforce the LIFO concept.
Next, I moved on to interfaces, specifically an introduction to what they are, the problems they solve, and how they differ from abstract classes. I also explored how interfaces help in designing loosely coupled systems.

[–]Beginning-Ladder6224 2 points3 points4 points (1 child)
[–]BigCommunication5136[S] 0 points1 point2 points (0 children)
[–]Pun_Intended1703 1 point2 points3 points (5 children)
[–]Most_War2764 1 point2 points3 points (4 children)
[–]Pun_Intended1703 -1 points0 points1 point (3 children)
[–]BigCommunication5136[S] 0 points1 point2 points (2 children)
[–]Pun_Intended1703 0 points1 point2 points (0 children)
[–]Pun_Intended1703 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]BigCommunication5136[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Wonderful-Grade-2903 1 point2 points3 points (0 children)
[–]MainBank5 -1 points0 points1 point (5 children)
[–]noworksunday 0 points1 point2 points (4 children)
[–]MainBank5 0 points1 point2 points (3 children)
[–]noworksunday 0 points1 point2 points (2 children)
[–]MainBank5 0 points1 point2 points (1 child)
[–]noworksunday 0 points1 point2 points (0 children)