Originally Posted by
staykovmarin
Define doesnt work:
x = input.InputInt();
System.out.println(x);
y = input.InputInt();
System.out.println(x);
You are also printing x twice there.
Yes, I saw that))
Exception in Thread "main" java.util.NoSuchElementException
at ..
at ..
.. smth like that
after I enter the first value, it prints it and right after that I get that exception