Java 21 Pattern Matching Usecase With Scala

The highly developed Java is indistinguishable from Scala.

September 21, 2023 · 11 min · junghoon-vans

Why Use Deque Instead Of Stack

Use Deque instead of Stack? When solving algorithm problems using Java, I used to use Deque instead of Stack. While searching online, I often came across posts that suggested using Deque instead of Stack class. However, I think I was using it vaguely without thinking deeply about why I should use Deque. We took this opportunity to learn more about the differences between Stack and Deque. A more complete and consistent set of LIFO stack operations is provided by the Deque interface and its implementations, which should be used in preference to this class. For example: ...

May 5, 2023 · 6 min · junghoon-vans

Refactoring Loops To Collection Pipelines

When is it best to use streams introduced in Java 8?

July 19, 2021 · 3 min · junghoon-vans

Primitive Type And Reference Type

Let’s learn about Java’s basic data types and reference data types!

July 16, 2021 · 4 min · junghoon-vans