How to input 2 space separated strings in loop .
when I use -
String[] str=s.nextLine().split(" ");
in loop, the nextline character is ignored and it gives no such element exception when the loop iterates second time.
I want to input multiple such pairs of strings