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

Method times

Programs/ADTFractionApp.java:68–78  ·  view source on GitHub ↗
(int a)

Source from the content-addressed store, hash-verified

66
67//---------------------------------------------------
68 public ADTFraction times(int a) {//multiply fraction by a number
69 int num, den;
70 den=this.d;
71 num=this.n * a;
72
73 ADTFraction f1 = new ADTFraction(num,den);
74 return f1;
75
76 //return times(new ADTFraction(a,1))
77
78 }
79
80
81 //---------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected