Myriad Java Programming Problem