java basics
-
Core Java

Get Date and Time From a Datetime String in Java
Working with date and time is a common task in programming. In Java, a String containing both date and time…
Read More » -
Core Java

Monads in Java
In the world of programming, managing side effects, handling optional values, and creating robust and maintainable code can be challenging.…
Read More » -
Core Java

Remove Byte Order Mark Characters from File
The Byte Order Mark (BOM) signifies a file’s encoding but can lead to problems if not handled properly, particularly when…
Read More » -
Core Java

Supply Enum Value to an Annotation From a Constant in Java
In this tutorial, we will delve into how Java allows us to use a constant to supply an enum value…
Read More » -
Core Java

Get the First and the Last Elements From an Array in Java
In this article, we will explore different approaches to getting the first and last elements from an array in Java.…
Read More » -
Core Java

Check if Two Strings Are Permutations of Each Other in Java
In this article, we will explore different approaches to check if two strings are permutations of each other in Java.…
Read More » -
Core Java

Check if a Number Is Power of 2 in Java
In this article, we will explore different approaches to check if a given number is a power of 2 in…
Read More » -
Core Java

The Transient Keyword in Java and Its Use
I recently came a cross in a study project of one of my friends that are studding the basics of…
Read More »
