Category: Java
Total: 389 Posts
Posts of Category: Java
  1. Guide to Simple Email Service (AWS SES) with Spring Boot and Spring Cloud

    .lazyload-placeholder { display: none; } Introduction AWS SES (Simple Email Service) is a simple-to-setup email sending and receiving service. It is usually difficult, finicky and tedious to manage an on-premis...Learn More
    SimpleJavaEmailSpringSpring BootawscloudSpring Cloud
  2. Prevent Cross-Site Scripting (XSS) in Spring Boot with Content-Security Policies (CSPs)

    .lazyload-placeholder { display: none; } Introduction The security of users and their personal data while using a web application is paramount. While this guiding principle has been acknowledged even from the e...Learn More
    JavaSpringSpring Bootspring security
  3. Remove Punctuation From a String in Java

    .lazyload-placeholder { display: none; } During textual processing, whether you're searching for certain words and making pattern matching rules, counting the frequency of elements, etc. - punctuation can throw...Learn More
    StringJava
  4. Java: Count Number of Word Occurrence in String

    .lazyload-placeholder { display: none; } Introduction Counting the number of word occurrences in a string is a fairly easy task, but has several approaches to doing so. You have to account for the efficiency of...Learn More
    StringJava
  5. Pretty-Printing JSON with Jackson in Java and Spring Boot

    .lazyload-placeholder { display: none; } Jackson is one of the most common libraries for working with serialization and deserialization in Java and Spring Boot, primarily used for parsing and converting between...Learn More
    JavaJsonSpringSpring Bootjackson
  6. Change JSON Field Name with Jackson in Java

    .lazyload-placeholder { display: none; } Jackson is a very common library for handling JSON and serialization/deserialization in general in Java and Spring Boot based projects. Jackson handles property names b...Learn More
    JavaJsonjackson
  7. Reversing a List in Java - In-Place and Out-Of-Place

    .lazyload-placeholder { display: none; } In this short tutorial, you'll learn how to reverse a list in-place and out-of-place in Java. Reversing In-Place and Out-Of-Place When performing operations on lists -...Learn More
    JavalistGuava
  8. Math.sqrt - Square Root in Java

    .lazyload-placeholder { display: none; } Introduction Calculating the square root of a number is one of the common operations we do in computer science. This simple mathematical function finds its use in all ar...Learn More
    Java
  9. Guide to Interfaces in Java

    .lazyload-placeholder { display: none; } Introduction Interfaces in Java are one of the basic concepts of object-oriented programming that are used quite often alongside classes and abstract classes. An interfa...Learn More
    Java
  10. Spring Boot: Guide to RestTemplate

    Introduction In this guide, we'll be taking a look at one of the most frequently used and well-known template in the Spring Ecosystem - known as RestTemplate, and how to use RestTemplate to send HTTP requests, ...Learn More
    JavaSpringSpring Bootspring security
  11. Java 8 Streams: Definitive Guide to Parallel Streaming with parallel()

    Parallel Streams in Java 8 Today, the Java Streams API is in extensive use, making Java more functional than ever. Thus, models like MapReduce have emerged for easier stream handling. Although these models mad...Learn More
    JavaStreamstreams
  12. Java 8 Streams: Definitive Guide to findFirst() and findAny()

    Introduction The findFirst() and findAny() methods are terminal operations (terminate and return results) of the Stream API. Yet, there is something special about them - they not only terminate a stream, but al...Learn More
    JavaStreamstreams