What is this syntax called Bool bool = object.method() > 0 in Java
- by optician
I've just seen this line of code in my housemates code.
Bool bool = method() 0;
or
string name = "Tony";
boolean nameIsTony = name == "Tony";
This would result in nameIsTony becoming true.
So you can have an inline conditional statement?
What is this called?