Home / Development

Development

Implement Queue Using 2 Stacks in Java

Implement Queue Using 2 Stacks in Java

Today, we will look at how we can implement a Queue by using 2 Stacks in Java. Note that a Queue is an interface in Java and to correctly implement it fully according to the documentation, all of its method signatures must be overridden. In this case however, we are implementing ...

Read More »

Reverse a String in Java

Reverse a String in Java

There are many ways of reversing a String in Java for whatever reason you may have. Today, we will look at a few simple ways of reversing a String in Java. For example, the string “Reverse Me” once reversed will be “eM esreveR”. We will start by looking at the ...

Read More »