I am trying to add a value 1.12 between the Min and Max values
Min = 1.3
Max = 6.9
ie
1.3 + 1.12 = 2.42
2.42 + 1.12 = 3.54
till it reaches max value.
What I did is
double sum = 0,BucWidth = 1.12;
sum = min + BucWidth ;
while(sum != max){
sum = sum +BucWidth ;
System.out.println("SUmmmmm" + sum);
}
But it is not stopping when sum reaches max.
Am I doing anything wrong.
Pls Suggest