I have writen a code like this:
String name="";
String path="hai";
if(path.contains(name))
{
System.out.println("its working"+name.length());
}
Output: its working0
I couldn't understand how the if condition satisfies .please help
containsworks. (And from a set perspective it makes sense, with the empty string being the empty set).