wip
This commit is contained in:
parent
46d4fa5e9d
commit
a2fa97383c
@ -7,5 +7,9 @@
|
||||
* CS2030S Lab 4
|
||||
* 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)
|
||||
*/
|
||||
|
||||
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),
|
||||
true);
|
||||
|
||||
we.showStat();
|
||||
we.print();
|
||||
// we.showStat();
|
||||
// we.print();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user