Code aid for my quest of conquering Java