I'm learning Java 8, Is any way to convert if else
statement much simpler?
use if-else logic in Java 8 optional flatmap
ex:
if (!ifStmtStack.isEmpty()) {
ifStmt = (IfStatement) ifStmtStack.pop();
}
I'm learning Java 8, Is any way to convert if else
statement much simpler?
use if-else logic in Java 8 optional flatmap
ex:
if (!ifStmtStack.isEmpty()) {
ifStmt = (IfStatement) ifStmtStack.pop();
}