Results 1 to 5 of 5
  1. #1
    Deepak is offline Member
    Join Date
    Feb 2017
    Posts
    6
    Rep Power
    0

    Default how to read data from mongodb and store in array list object..??

    how to read data from mongodb and store in array list object..help????

  2. #2
    Deepak is offline Member
    Join Date
    Feb 2017
    Posts
    6
    Rep Power
    0

    Default how to read data from mongodb and store in array list object..??

    how to read data from mongodb database and store in array list object..??help

  3. #3
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

    Default Re: how to read data from mongodb and store in array list object..??

    Did you try entering that sentence in Teh Googols and see what it comes up with? Searching for "querying Mongodb with Java" yields 466,000 results. Which one of these results did you not understand?

    And using an ArrayList is basic Java which is explained in the plethora of Java Collections tutorials.

    Please put in some effort yourself and show what you have made. Only then people can help you find the problem. This is not a Code Factory™ or Rent-a-Coder™.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

    Default Re: how to read data from mongodb and store in array list object..??

    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: how to read data from mongodb and store in array list object..??

    You will need a model to represent a row returned by your query.
    Then you will create an instance of your model for each row returned, adding that instance to your List.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. read text data and store to array
    By Ericyue in forum New To Java
    Replies: 3
    Last Post: 04-09-2012, 02:07 PM
  2. Read xml data with multiple attributes and store values
    By LiveStrong-2011 in forum New To Java
    Replies: 4
    Last Post: 06-08-2011, 12:45 AM
  3. Replies: 1
    Last Post: 05-16-2011, 01:19 PM
  4. Need a solution to read and store data from a file
    By sheetalnri in forum New To Java
    Replies: 10
    Last Post: 09-30-2010, 06:43 AM
  5. How to read data from excel and store it in db
    By saran123 in forum New To Java
    Replies: 5
    Last Post: 10-03-2008, 10:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •