Vectors to store data from resultset

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alpareshamwala
    New Member
    • Nov 2007
    • 5

    Vectors to store data from resultset

    i am using vectors to store data from resultset but facing problems
    can anyone give me sample code for the same
    Alpa
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by alpareshamwala
    i am using vectors to store data from resultset but facing problems
    can anyone give me sample code for the same
    Alpa
    Are you using vectors to store individual rows from the database? Or are you
    storing complete rows as single entries in a vector?

    kind regards,

    Jos

    Comment

    • dav3
      New Member
      • Nov 2006
      • 94

      #3
      not sure what type of data your result set is giving you but i faced a similar problem earlier this year. I was able to use an arraylist of type Double

      Code:
      List<Double> list = new ArrayList<Double>();
      This one line of code saved me many headaches.

      NOTE: I am pretty sure you have to be using 1.5 or higher.

      Comment

      • heat84
        New Member
        • Nov 2007
        • 118

        #4
        Originally posted by alpareshamwala
        i am using vectors to store data from resultset but facing problems
        can anyone give me sample code for the same
        Alpa
        What kind of problems are you facing?

        Comment

        Working...