MongoDB Java Driver Infinite loop while reading results
I am reading MongoDB results using the following code , however the while loop runs in an infinite loop always iterating over the first element in the collection, can someone point out what I am doing …