once you take the second input, its overwriting the first input.
try reading java arrays.