Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Triple is a pythagorean triple.
- * @author YOUR NAME HERE
- */
- public class Triple
- {
- /** Construct a triple from initial values for m and n.
- * @param initialM the value of m
- * @param initialN the value of n
- * @pre Assumes initialM > 0, initialN > 0, initialM > initialN
- */
- public Triple(int initialM, int initialN)
- /** Compute Side 1.
- * @return the length of side 1
- */
- public long findSide1()
- /** Compute Side 2.
- * @return the length of side 2
- */
- public long findSide2()
- /** Compute Side 3 (the hypotenuse).
- * @return the length of the hypotenuse
- */
- public long findHypotenuse()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement