I’m trying to find a similar or equivalent data collection used in C# DataRow class, which lets me choose the column name and row index.
Is there anything similar to this that can be used in Java?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is somewhat similar to Etienne de Martel’s answer, but I would strongly recommend using a Map of sorts. A HashMap is almost certainly he best way.
I would first make a 2D array of values, for distinguishing purposes, I’ll call them Doubles:
I would then for each column name map an integer to it:
Then using these two together, I would create a function.