Following is my java code :
Can someone please suggest how to print the same on JTextArea
?
DBCursor cursor = coll.find();
int i=1;
while (cursor.hasNext())
{
System.out.println("Inserted Document: "+i);
System.out.println(cursor.next()); // i want to print this into jtextarea
i++;
}