I have a constructor that takes in the number of rows/columns and file location of a txt file and stores those values into a `String` array.

```
int rows;
int columns;
int count;
File fileLocation;
String[][] stringArray;
Double[][] doubleArray; // Used in my convertToDoubleArray() method

public StoreArray(int rowsI, int columnsI, File fileLocationI){

        int i;
        int j;

        InputStream fileInputStream;
        BufferedReader bufferedReader;
        String line;

        rows = rowsI;
        columns = columnsI;
        count = 0;
        fileLocation = fileLocationI;
        stringArray = new String[rows][columns];

        try{
            fileInputStream = new FileInputStream(fileLocation);
            bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream, Charset.forName("UTF-8")));

            for(i = 0; i < rows; i++){ // iterate through row
                for(j = 0; j < columns; j++){ // iterate through column
                    while((line = bufferedReader.readLine())!= null){ // while the next line is not null
                        stringArray[i][j] = line; // assign i-th j-th index as line (RGB value)
                        count++;
                        break;
                    }
                }
            }
            bufferedReader.close();
        }catch(Exception e){
            e.printStackTrace();
        }
    }

```

The purpose of this is because I am using a Java library called JHeatChart which takes in `double` arrays and displays the array-containing values as a heat chart.

So the main function that I use is:

```
File timeValuePath = new File(filePath);
int timeValueRow = 93;
int timeValueColumn = 14;

StoreArray timeValueArray = new StoreArray(timeValueRow,timeValueColumn,timeValuePath);
timeValueArray.convertToDoubleArray();

```

`convertToDoubleArray()` is a method I wrote that simply takes each String input (since `BufferedReader` only allows String parameters) and converts it to double. It also returns an error when the input isn't a Double.

Since the input for `JHeatChart` is a `double[][]`, and my constructor indeed stores values into a `double[][]` instance, how do I "use" the `timeValueArray` object as a double array? I apologize if I am not using the terminology correctly. Thank you.