Java HashMap – Get highest Key or highest value

Java HashMaps are a key : value data object. They are widely used in Java and are based on the Map interface. Their flexibility lies in their ability to span…

Records in Java

Records were a new addition in Java 14. Before that, data was typically held in a class with Getter and Setter methods. Typically, these storage classes were used to store…

Getting a record from HBase

Getting a record from HBase is similar to getting a record from SQL. You still need basic details like database name, table name and a row key. Where it differs…

Java – Find a sub array in an array

Finding a sub array within in an array can be achieved using several methods in Java. It gets a bit trickier when we want to find every occurrence of the…