MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / set

Method set

Programs/ADTFractionApp.java:43–53  ·  view source on GitHub ↗
(int a, int b)

Source from the content-addressed store, hash-verified

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}
48else{
49 this.n=0;
50 this.d=1;
51 System.out.println("Denomenator cannot be Zero");
52}
53 }
54
55
56

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected