mardi 20 février 2018

How to replace traditional if else IN JAVA 8 [on hold]

I have below code 

if (val1.equal(val2)) {
//some statement
} else {
//some other statment
}

How i can write same code in java 8 as much as possible.

Aucun commentaire:

Enregistrer un commentaire