Quantcast
Channel: Java Archives - Java Code Geeks
Browsing all 743 articles
Browse latest View live

Java and Dapr: Building Cloud-Native Apps Made Easy

The ever-evolving landscape of cloud-native development demands innovative solutions for building scalable and resilient applications. Java, a cornerstone of enterprise development, and Dapr, a rising...

View Article


Blowfish Encryption Algorithm

Blowfish, conceived by Bruce Schneier in 1993 is a symmetric-key block cipher, devised to overcome the constraints of prior encryption methodologies such as DES. It presented a faster, royalty-free...

View Article


Flatten a Stream of Maps to a Single Map in Java

1. Overview Working with streams of data has become a common task in Java development since Java 8. Often, these streams contain complex structures like maps, which can pose a challenge when processing...

View Article

Java Integer Binary Representation

Java utilizes binary representation to store numbers in memory. Gaining insight into how integers are depicted at the bit level can significantly aid in performing specific operations. Let us delve...

View Article

Empower Your Spring Boot Development with These Top Design Patterns

Spring Boot is a fantastic framework for rapidly building robust and efficient applications. But did you know that design patterns can take your Spring Boot development to the next level? This...

View Article


Dynamic Bean Registration Based on Properties

Spring offers a powerful approach to configuring applications: defining beans through annotations and properties. But what if we need to create beans dynamically based on configuration loaded at...

View Article

Find Largest Number If To Remove k Digits From It

A common problem in programming arises when you need to find the largest possible number by removing k digits from a given number. Let us delve into Java’s method to find the largest number if to...

View Article

Happy / Sad Number Test In Java

When it comes to programming in Java, happy / sad number test is an interesting challenge. Happy numbers are those that, when the sum of the squares of their digits is repeatedly calculated, eventually...

View Article


Read a .gz File via GZIPInputStream

1. Introduction GZIP, short for GNU Zip, is a compression technology used for transferring data over the internet. Java built-in library includes the GZIPInputStream class which reads compressed data...

View Article


Spring Boot: From Zero to Launch

Have you ever dreamt of building a robust Java application without getting bogged down in complex configurations? Spring Boot makes that dream a reality! This framework empowers you to develop...

View Article

Add Elements to an Immutable List

1. Introduction In Java, immutable objects are designed to have their state remain unchanged throughout their lifetime to ensure thread safety and prevent unintended modifications, fostering robust and...

View Article

Find Peak Elements in Java List

Peak elements in an array hold significance across various algorithms, providing valuable insights into the dataset’s properties. Let’s delve into understanding how to find peaks in a Java list. 1....

View Article

Java time range check

In Java, there are various methods available for determining whether a specific time falls within a given time range, disregarding dates. Let us explore various ways to check if a given time lies...

View Article


Secure Kubernetes Secrets with Vault

1. Introduction: Kubernetes has become the de facto platform for container orchestration in modern cloud-native environments. However, managing and securing sensitive information like passwords, API...

View Article

Receiving PostgreSQL Push Notifications with Spring Integration

1. Introduction In modern applications, real-time updates and notifications play a critical role in keeping users informed and engaged. PostgreSQL, a powerful relational database, supports a feature...

View Article


Game Theory – The Secret Weapon of Blockchain Developers

The world of blockchain technology is a complex ecosystem built on trust and collaboration. But beneath the surface lies a fascinating layer of strategic decision-making – a layer powered by the...

View Article

Normalize End Of Line Character

1. Introduction An end-of-line (EOL) character is a special character that marks the end of a line in a text file or a string. Historically, different operating systems denote a different character for...

View Article


Java Array Majority Element

In Java, determining the majority element of an array involves identifying the element that appears more than half of the array’s size. Let us delve into understanding how to use Java array to find the...

View Article

Securing Your Spring Boot Fortress: A Guide to 2FA Methods

In today’s digital world, your Spring Boot application is like your own personal treasure chest, and you need to keep it safe. That’s where Two-Factor Authentication 2FA methods comes in. Think of it...

View Article

Getting URI’s Last Segment in Java

Interacting with Uniform Resource Identifiers (URIs) is a frequent task, often encountered in both web development and file organization. Additionally, a prevalent requirement involves extracting the...

View Article
Browsing all 743 articles
Browse latest View live