Tag: Java

List removeIf wrappers

List removeIf Wrappers Java Challenge

The removeIf method from the Collection interface that was first introduced in Java 8 is powerful. We can use a lambda expression to removed items from one List. In the following Java Challenge, we will explore the removeIf method and will also see...

method-reference-lambda

Method Reference VS Lambda Java Challenge

Do you know what are the differences between method references and lambdas? In this Java Challenge, we will explore how lambdas and method references behave so that you can really understand how they work! Now that you know the main context...

streams set

Streams Set Distinct Java Challenge

Using streams, and Set Collection Factory methods with Java make code easier to read and maintain. By using those features we can also make it more difficult for bugs to hide. If you can use the latest LTS (Long-term support) Java version in your...

exception chaos

Exception Chaos Java Challenge

To go deeper and know how to use Exceptions in a real project, you can read the following article: 11 Mistakes Java Developers Make when Using Exceptions If you have any questions about this Java Challenge, don’t hesitate to leave a question...

array object reference

Arrays and Object Reference Java Challenge

Arrays are objects in Java. Variables in Java actually stores references to the object instead of the real object. When we pass an object reference to a method we are changing the object that is in the heap of the memory. Considering the explanation...

keywords reserved words

Keywords VS Reserved Words in Java

There are some misunderstandings and confusion regarding keywords and reserved words in Java. I’ve seen many articles treating reserved words as keywords but actually, there is a difference. Java has many keywords, let’s list them here:...