I was having a hard time solving the problem with my Java code. I already spent many hours trying to figure out the problem. So, I decided to get help from people in StackOverflow. I raised there a question whether is it a good way to use java.util.List as a buffer or not? And when I was about to exit the site to look for solutions, answers flooded in my question. I was like, "Wow! this is awesome." It was one of the best feelings I've ever felt. And you know what? In just less than 10 minutes, I already found a way to solve my problem.