Spring Boot Docker

WSL 2 installation is incomplete. The WSL 2 Linux kernel is now installed using a separate MSI update package. Please click the link and follow the instructions to install the…

Java Enum valueOf

Java Enum valueOf

Java.lang.Enum.valueOf() Method – Tutorialspoint Source: (tutorialspoint.com) Java.lang.Enum.valueOf() Method – The java.lang.Enum.valueOf() method returns the enum constant of the specified enumtype with the specified name. The name must match exactly an identifier…

java substring

Java substring

What is a substring? The java substring() method of String class is used for getting a substring from the string. The String class represents character strings. All string literals in Java programs,…

Java get current date

java.time.format.DateTimeFormatter java.text.SimpleDateFormat java.time.LocalDate java.time.LocalTime java.time.LocalDateTime java.time.Clock java.util.Date Example 2 java.sql.Date

Java primitive data types

Java has eight built-in data types, referred to as the Java primitive types. boolean Type: true or false Example: byte Type: 8-bit integral value Example: short Type: 16-bit integral value…

Java null pointer exception

NullPointerException is a runtime exception and it is thrown when the application tries to use an object reference that has a null value. Let`s look to the Oracle doc one…