Remember that the overall if statement is looking for a boolean expression in the end. That is to say, whatever is in between those parentheses must evaluate to true if anything is to execute inside of the if block.
Now, to your question. If you say that getLot() represents whether or not it's a corner lot, then you're halfway there.
if(shop[i].getLot()) {
// logic
}
You can omit the == true portion; you'd only be comparing booleans to booleans at that point, which is not necessary.
We want to add the string condition next. I'll make this excessively simple, but there are more clever ways to do this, such as regular expressions.
If we are saying that a method getStorey() exists that returns String, then we can check to see if that particular string is equal to "double". You can use the logical AND (&&) operator to combine more than one boolean condition.
if(shop[i].getLot() && "double".equals(shop[i].getStorey())) {
// increment a counter here
}
MyStringfor example you canif (shop[i].getLot().equals('MyString'))ifshop[i].getLot()is actually a boolean just useif (shop[i].getLot())