eGenting Bug Hunt 2015 is coming this November and the registration is now open. This will be the third year the company organizing the annual event and it will be different from the past few years. … [Read more...]
Java: Static Initializer (Static Constructor)
Many Java programmers, including my self, might have mistaken that the portion of code that initializes the static variables of a class called the static constructor. Why Not A Java Static Constructor? It is actually not a constructor that initializes the static variables' value. This is because static variables do not need to and can not be constructed as they are being … [Read more...]
Java: How To Select Top N Objects From A List
There are several ways to select top N objects from A list in the order of multiple data members of an object. For example, you may select top 10 players (top scores) from a list ordered by the players' score_1, score_2 and then score_3. The Simplest Way But Ineffective The simplest way to pick the top N elements is to sort the whole list and get the top N elements. … [Read more...]
Java: How To Implement ungetc in Java
If you are a C or C++ programmer, you may familiar withe ungetc function in C. ungetc function is a very simple but useful function especially when your program need to read characters from a FILE stream for data parsing. You may encounter cases where you need to unread the character so that you can use that character when you pass in the FILE reference into another … [Read more...]
eGenting Programming Competition 2013
Another competition year has come! Get your programming skills polished and take the challenge! There are more prizes this year. Come eat for free (breakfast, lunch, tea break include) and registration is free. Remember to bring your weapons, books I meant :) … [Read more...]