0

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();
    }
coder
  • 8,346
  • 16
  • 39
  • 53
Joe
  • 9
  • 3

0 Answers0