You can use Gson but you need to add Gson to your dependencies. Parse array to a string, store it in database as a string and convert it back to double 2D array when you need the array.
Gson gson = new GsonBuilder().create();
double[][] multiDoubleArray = new double[][]{{1.0, 2.0, 3.0}, {4.0, 5.0, 6.0}};
// to string
String stringArray = gson.toJson(multiDoubleArray);
// back to 2D array
double[][] multiDoubleArray2 = gson.fromJson(stringArray, double[][].class);
1
solved How to store a multi dimensional array in a SQL database with Java? [closed]