Suppose that i have given below syntax:
Boolean isCapital = city.isCapital();
String isCapitalName;
if(isCapital == null) {
isCapitalName = "";
}
Means that i do not want else condition in my short for(The header of this blog) then what should be the syntax.
I want to minimize the use of if else condition in my project so that i want to use on liner if else.
Please guide.