Skip to content

Commit

Permalink
Testing accomplished.
Browse files Browse the repository at this point in the history
  • Loading branch information
Acce1erat0rS committed Nov 1, 2017
1 parent 7ebea9e commit c8bbab8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Exp3/Exp3.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface iterable{
double getBigger();
}

interface calcuatable{
interface calculable {
void do_math();
double getResult();
}
Expand All @@ -30,7 +30,7 @@ public binomialDistribution(double p,long n){

@Override
public double maximumExpection(){
calculator cal = new calculator(1,m);
calculable cal = new calculator(1,m);
cal.do_math();
return cal.getResult();
}
Expand All @@ -41,7 +41,7 @@ public String toString(){
}
}

class calculator implements iterable,calcuatable{
class calculator implements iterable, calculable {
private long start;
private long end;
private long cur_start;
Expand All @@ -55,7 +55,6 @@ public calculator(long start,long end){
cur_start = this.start;
}


public void do_math(){
while(cur_end>=cur_start){
if(result>1)
Expand Down

0 comments on commit c8bbab8

Please sign in to comment.