+ 2

WHY?? 😵

why this code is not giving output? Whats the problem? When i input = "1 abcd". https://code.sololearn.com/cKVij4wpbjN8/?ref=app

18th May 2020, 11:10 AM
Abhay Kalsi
Abhay Kalsi - avatar
1 Odpowiedź
+ 4
Do not confuse reference comparison with content comparison. if(array[i].equals("1"))
18th May 2020, 11:18 AM
Avinesh
Avinesh - avatar