Zack's java program