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
  • 7,778
  • 15
  • 37
  • 52
Anand
  • 11
  • 3

0 Answers0