Add LazyEvaluate class

This commit is contained in:
danielmcnally285 2023-11-05 11:43:32 +00:00
parent a33bdf8a03
commit 88a92d399c
1 changed files with 16 additions and 0 deletions

View File

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