Can anybody explain it to me why the value of n1 is not increasing by 1 in this case, or in other words why the mathematical operation isn't showing 1.
package com.company;
public class Main {
public static void main(String[] args) {
System.out.println(isNumber(20, 21));
}
public static double isNumber (double n1, double n2){
double calc = n1++ / n2;
return calc;
}
}