I have list = [1,0,1]
, but each number in the List are of type String. I do
if ( String.join("",list) == "101"){
return true
}
As you can see, these to Strings are equal but it won't return true.
I have list = [1,0,1]
, but each number in the List are of type String. I do
if ( String.join("",list) == "101"){
return true
}
As you can see, these to Strings are equal but it won't return true.