Some useful code for understanding Java while coding Android.