Code written while learning basic Java syntax