Creating an 2D Array from database table
Could someone present me the simpliest way to pass the data from sqlite table to 2D array?
Lets assume table with columns: _id, date, value
I assume I have to count records in the table before I 开发者_JAVA技巧define an array
The way that I would usually do this is by creating a Struct with the necessary properties (id, date, value in your case), and then have an array to hold the instances of the struct.
精彩评论