exercises from javanotes