Java 8

Java 8: Lambda walkthrough

Previously you can find article about what’s new in Java 8, in this tutorial let me show you some examples in using Lambda expression in Java 8.¬†Lambda expressions are used to assign the behavior to a variable or pass the behavior in between method calls instead of wrapping the behavior in an object and working with the objects.…

Java 8

Java 8: What’s new?

Heard about Java 8? Excited about Java 8? Wanna know about Java 8? If so, then you can continue to read this article.

If you have heard about Java 8 then you might noticed people saying that it is going to change the world of Java community and it is going to have many new revolutionary features that Java was …

Oracle Java

Serializability Test in Java

Previously I shared you about how to debug Java object with reflection, this article will also show you something about object in Java.

Long time back, I have an experience in solving problem related to clustering on production. This is actually troublesome, because I have to find what is the root cause of this. If you familiar with clustered …

Oracle Java

Customized Exception Stack Trace in Java

As a programmer, you must be familiar with Java stack trace, isn’t it? If you’re not familiar with exception stack trace, you can learn on how to produce and read the stack trace before you continue to read this article.

Converting a stack trace into a String is done with Throwable.printStackTrace().¬†If desired, a customized stack trace String can …

Oracle Java

Make Your Oracle JDK 7 as Default JVM in Ubuntu

In some Linux distros, the vendor included OpenJDK as the default JVM, but sometime this not what you’re looking for. If you want to use Sun JDK instead, you can follow below instructions:

  1. Purge existing OpenJDK from your Ubuntu:
  2. Add a new repository and install Sun JDK:
Oracle Java

How to mapping Java objects in simple way?

In some projects, I faced a problem that I have to mapping some attributes of an object to other object. One time, I need to mapping less than 10 attributes. But in other time, I need to mapping more than 50 attributes. Of course, this is very painful thing that has to be done.

After ‘googling’ for sometime, finally I …

Oracle Java

Loop a Map object in Java

This article actually is very basic things in Java, but based on my experiences, even a good Java developers also need this. I will never remember the code how to loop a Map object in Java. That’s why I logged it here, for me, and of course also for you. Feel free to copy, and use it on your code.…

Flat File

Painless Flat File Parsing with BeanIO

Do you have any experiences to read formatted flat file, like CSV? Or maybe you want to migrate data from formatted file with header and footer exported by other system? Please take a look into below example of flat file, and you will have any question how to read this file in Java: