I'm using this:
NumberFormat formatter = new DecimalFormat("##.##");
double nota=(punctaj / nr_intrebari)*10;
String notafinala=formatter.format(nota);
where punctaj and nr_intrebari are int

Why nota or notafinala is 0 (zero) is the result of the division is not an integer?
For example, if punctaj=1 and nr_intrebari=3 then nota=0.0.Why? I want the result to be a double like 0,33.