fundemental java looping