Nuacht
System. out. println (s. length ()); } The difference is clear: No redundant casting: The variable s is ready to use as a String. Cleaner logic: Combines type-checking and assignment in one line.
Cuireadh roinnt torthaí i bhfolach toisc go bhféadfadh siad a bheith dorochtana duit
Taispeáin torthaí dorochtana