Java Primitive Types Consider the following Java primitive types and take note of the type’s size, e.g., 8-bit. For this post, we can ignore boolean, and char as they are not numeric types. [wp_ad_camp_1] Given the following table of Java
Create Your Own Functional Interface in Java 8
What is a Functional Interface? [wp_ad_camp_1] Java 8 offers Lambda expressions to help us write better, and concise codes. Lambda expressions revolve around Functional Interfaces. So, what are Functional Interfaces? The simplest definition is: Functional Interfaces are Java Interfaces with
Converting Between array and List in Java
Converting Between array and List in Java.
Java 8 Convert values in a Stream using Map
Convert any value or object to a different type. For instance, MyEntityBean to MyEntityAPI. No loops. Just Lambda.
Java 8 Get the Min and Max values in a Stream
Do you remember your first programming assignment in college? Most like it is one of those simple Mathematics like get the min and max values from a given list. How about from a list of objects?
Java – Validate CSV using SuperCSV with custom CsvColumnProcessor
[wp_ad_camp_1] Validating CSV is super easy with SuperCSV and it will save your day. Assume that we have a requirement from the management to validate new employee data coming from different parts of the United States with the following constraints.
Java – Run application without classpath using Extension Mechanism
In Java, it is possible to “extend” your currently installed JRE in a way that your classes are loaded automatically thereby removing the need to specify them in the classpath. This is done using Java’s Extension Mechanism. [wp_ad_camp_1] Below is
Java – How to pass argument string with spaces to Java
The way you run your application in Java is by invoking java followed by the class name (without the .class extension).
Java – Check for file or directory
The class java.io.File can be used to check for files or directory.
Java – Compare XML files using XMLUnit
Here, we’ll be using XMLUnit from www.xmlunit.org in a Maven project.