I have a java problem for class and I Have no idea where to begin with it. the problem is

Write a while loop that accepts numbers from a user and sum only the numbers that

are odd? The loop quits if the given input number is -9999.

any help would be greatly appreciated