(int a, int b)
| 41 | } |
| 42 | //--------------------------------------------------- |
| 43 | public void set(int a, int b) {//set numerator and denomenator |
| 44 | if(b!=0){ |
| 45 | this.d=b; |
| 46 | this.n=a; |
| 47 | } |
| 48 | else{ |
| 49 | this.n=0; |
| 50 | this.d=1; |
| 51 | System.out.println("Denomenator cannot be Zero"); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | |
| 56 |
nothing calls this directly
no outgoing calls
no test coverage detected