Add LazyEvaluate class
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
package com.baeldung.returnfirstnonnull;
|
||||
|
||||
class LazyEvaluate {
|
||||
|
||||
String methodA() {
|
||||
return null;
|
||||
}
|
||||
|
||||
String methodB() {
|
||||
return "first non null";
|
||||
}
|
||||
|
||||
String methodC() {
|
||||
return "second non null";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user