We may wish to convert a telephone number, expressed in words, into its equivalent digits. We look at a general algorithm for processing the names of digits and multiplicative words such as double.
Search Results for: ord
Regular Expression for Password Validation in Java
Learn how to use a regex for Java-based password validation processes.
Validate if a String Is a Valid Geo Coordinate
A short guide on checking if a Java String is a valid Geo Coordinate.
How to Get Last Record in Spring Data JPA
Explore different ways of getting the last record in Spring Data JPA.
Deserializing JSON to Java Record using Gson
Learn how to dеsеrializе JSON data into Java rеcords using Gson.
Ensuring Message Ordering in Kafka: Strategies and Configurations
Learn how to ensure that messages are sent and received in the same order with Kafka.
Optional as a Record Parameter in Java
Learn about using Optional as a record parameter and understand why it’s a bad practice.
Capitalize the First Letter of Each Word in a String
Learn how to capitalize the initial character of each word in a Java string.
Wrapping a String After a Number of Characters Word-Wise
Learn to wrap a sentence automatically after a given number of characters.
Get All Record Fields and Its Values via Reflection
Explore how to retrieve all the fields and their values within a record class using Java’s Reflection API.
Calculate Distance Between Two Coordinates in Java
Learn three methods to calculate the distance between two geographical coordinates in Java.
Sorting Java Map in Descending Order
A quick and practical guide to sorting Java Map in descending order.
Guide to the yield Keyword in Java
Java’s new yield keyword makes it easier to provide a returned result from switch statements. We look at how it works and how it can help ensure we cover all possible cases.
Find the Longest Word in a Given String in Java
Learn how to find the longest words in a sentence.
Overriding hashCode() And equals() For Records
Learn how records provide us with a default implementation of equals() and hashCode() methods.
Encode Passwords With Spring Boot CLI
Learn how to avoid exposing passwords by encoding them with the help of Spring Boot CLI.
Using Java Records with JPA
Learn how we can use records with JPA and Spring Data JPA.
Custom Constructor in Java Records
Learn how to create custom constructors for Java Records and the benefits they provide.
Database Keywords as Columns in Hibernate Entities
Learn how to avoid cryptic Hibernate exceptions by properly escaping database keywords in column names.
Record vs. Final Class in Java
Explore the differences between records and final classes in Java.