• Java Performance Boost
    Java

    Solve your Java performance problems

    The Performance Diagnostic Methodology (PDM) is a structured approach in order to find the root cause of Java performance problems. When performance issues occur, often people start panicking and start tuning the JVM without exactly knowing whether they are solving the cause of the performance issue. Therefore, a structured approach can exclude some possible causes and point you in the right direction in order to solve the issue appropriately. The approach is visualized with the next scheme. References:

  • Java

    Functional Programming in Java 8

    References: https://flyingbytes.github.io/programming/java8/functional/part1/2017/01/23/Java8-Part1.html https://dzone.com/articles/functional-programming-in-java-8-part-2-optionals?fromrel=true

  • Java built-in annotations
    Java

    All Java Built-In Annotation Examples

    Java introduced annotations upon their Java 1.5 release. Since then, annotations have shaped the way we design our applications. In this article, we’ll talk about a set of predefined annotation types in the Java SE API. Some annotation types are used by the Java compiler and some apply to other annotations. What Is Annotation? Annotations are Java types that are preceded by an @ symbol. Java has had annotations ever since the 1.5 release. Since then, they’ve shaped the way we’ve designed our applications. Spring and Hibernate are great examples of frameworks that rely heavily on annotations to enable various design techniques. Basically, an annotation assigns extra metadata to the…

  • HashMap on Java
    Java

    Different ways to traverse a Map in Java

    In this quick article, we’ll have a look at the different ways of iterating through the entries of a Map in Java. Simply put, we can extract the contents of a Map using keySet(), valueSet() or entrySet(). Since those are all sets, similar iteration principles apply to all of them. The Map.entrySet API returns a collection-view of the map, whose elements are from the Map class. The only way to obtain a reference to a single map entry is from the iterator of this collection view. The entry.getKey() returns the key and entry.getValue() returns the corresponding value. Let’s have a look at a few of these. We will use following…

  • Java,  Software Development

    Convert a List to a Set in Java

    Nam eu nisi non quam ultrices lacinia non sit amet urna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi pulvinar felis at massa auctor, ac bibendum dolor facilisis. Quisque tristique fringilla convallis. Quisque justo nunc, ornare et turpis et, mollis lobortis lectus. Vivamus blandit nulla et finibus hendrerit. Aliquam at dui id erat ullamcorper fringilla. Aliquam id tellus est. Praesent elementum in nisi quis volutpat. Vestibulum non augue vel dui consequat tempus ut vitae magna. Curabitur ligula orci, facilisis et urna a, rutrum auctor lorem. Proin lacinia sodales diam, vel congue purus feugiat in. Sed ut mattis sem, ac lacinia odio. Donec est leo, tincidunt sit amet tortor nec,…