I want to create a static table using Java code to join it with another table from the database.
I know the number of columns and rows and the data, nothing of them is going to change at all, all of the values are constant.
The table will not be created in the database, it’s only in the code and will be created when the application started.
I am new at Java coding, I used to work on C#, and I searched a lot through the internet, all what I found is how to create table in database which is not what I’m looking for. Any help would be appreciated.
You can use
ResultSetbut you’ll see that it’s not likeDataTablein c# you can refer this link, maybe it will help youDataTable equivalent in Java