javafx-how to sum up arrayed choiceBox<integer> value : Please I need help ,I think I wrote my java code well but am still getting expection error
This is the code :
All procedures met,let me go straight to the portion of the code with problem.

    Int sumofc = 0;
     VBox vlay = new VBox(10);

    ChoiceBox<Integer> c1[]  = new ChoiceBox[10]
    For (int x=0;x<10;x++){
    c1[x] = new ChoiceBox<>();
    C1[x].getItems().add(1);
    C1[x].getItems().add(2);
    C1[x].getItems().add(3);
    Vlay.getChildren().add(c1[x]);
    sumofc += c1[x].getValue();
    }
The sumofc is not adding the values 