Difference between revisions of "Any and All Assignment"

From CSE425S Wiki
Jump to navigation Jump to search
(Created page with "= Group Warmup= = Background = * [https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html Predicate<T>] * [https://www.merriam-webster.com/dictionary/any...")
 
Line 7: Line 7:
  
 
= Code To Implement =
 
= Code To Implement =
 +
==Any==
 +
{{JavaToImplement|Any|any<br/>any<br/>any|anyandall.group}}
 +
 +
public static double sumDistancesToOrigin(ImList<ImTuple2<Double, Double>> xys)
 +
 +
==All==
 +
{{JavaToImplement|All|all<br/>all<br/>all|anyandall.group}}
 +
 +
public static double sumDistancesToOrigin(ImList<ImTuple2<Double, Double>> xys)
 +
 +
=Test=
 +
==Java==
 +
{{TestSuite|AnyAndAllTestSuite|anyandall.group}}

Revision as of 08:56, 9 February 2022

Group Warmup

Background

Code To Implement

Any

class: Any.java Java.png
methods: any
any
any
package: anyandall.group
source folder: src/main/java
public static double sumDistancesToOrigin(ImList<ImTuple2<Double, Double>> xys)

All

class: All.java Java.png
methods: all
all
all
package: anyandall.group
source folder: src/main/java
public static double sumDistancesToOrigin(ImList<ImTuple2<Double, Double>> xys)

Test

Java

class: AnyAndAllTestSuite.java Junit.png
package: anyandall.group
source folder: src/test/java