wip
This commit is contained in:
@@ -7,5 +7,9 @@
|
|||||||
* CS2030S Lab 4
|
* CS2030S Lab 4
|
||||||
* AY22/23 Semester 1
|
* AY22/23 Semester 1
|
||||||
*
|
*
|
||||||
* @author Put Your Name (Lab Group)
|
* @author Yadunand Prem (10B)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
interface Action<T> {
|
||||||
|
void call(T item)
|
||||||
|
}
|
||||||
|
|||||||
@@ -7,3 +7,12 @@
|
|||||||
*
|
*
|
||||||
* @author Put Your Name (Lab Group)
|
* @author Put Your Name (Lab Group)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
class Print<T> implements Action<T> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void call(T item) {
|
||||||
|
System.out.println(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class TestProbably {
|
|||||||
Probably.none() == Probably.just(null),
|
Probably.none() == Probably.just(null),
|
||||||
true);
|
true);
|
||||||
|
|
||||||
we.showStat();
|
// we.showStat();
|
||||||
we.print();
|
// we.print();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user