This commit is contained in:
Yadunand Prem 2022-09-15 11:47:51 +08:00
parent 46d4fa5e9d
commit a2fa97383c
3 changed files with 17 additions and 4 deletions

View File

@ -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)
}

View File

@ -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);
}
}

View File

@ -55,7 +55,7 @@ class TestProbably {
Probably.none() == Probably.just(null),
true);
we.showStat();
we.print();
// we.showStat();
// we.print();
}
}
}