The following class `DoubleArray` is used to create and display pyramid arrays.
When trying to test the code there was a problem in displaying numbers in the pyramid array as the picture below shows. Where can be the error in the following code ? 

```
public class DoubleArray {
  public static double[] createSequenceArray(int size){
    double[] array;
    array = createZerosArray(size);
    for(int i=0 ; i< size ; i++){
        array[i]=i;
    }
    return array;
}
  public static String arrayToString(double[] dblArray){
      String container="";
      for (double item : dblArray){
        container =container + item +" ";
      }
      return container;
  }   
  public static String arrayToString(double[][] dblMatrix){
      String container ="";
      for (double[] item: dblMatrix){
        container = container + arrayToString(item)+"\n";
      }
      return container;
  }
  public static double[][] createPyramidArray(int maxRows){
        double [][] array = new double[maxRows][]; 
        for(int i=0; i<maxRows;i++){    
        array[i] = new double[i+1];
        for(int j = 0; j<array[i].length;j++){
            array[i][j]=(j+1)*1.1;
        }
        }
        return array;
   }
 }
}

```

Code for main function

```
public class ArrayTest {

public static void main(String[] args) {
    // TODO Auto-generated method stub
    double[] arrayUn; 
    double[][] arrayDb;
    arrayUn = DoubleArray.createSequenceArray(12);
    System.out.println(DoubleArray.arrayToString(arrayUn));
    arrayDb = DoubleArray.createPyramidArray(7);
    System.out.println(DoubleArray.arrayToString(arrayDb));
 }
}

```

The console shows the following: 3.3000000000000003 is printed instead of 3.3

[![enter image description here](https://i.stack.imgur.com/btQhP.jpg)](https://i.stack.imgur.com/btQhP.jpg)