• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
+ 2

WHY?? 😵

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

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

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Best way to learn a new programming language fast?
3 Votes
Where make_unique is better than unique_ptr(raw pointer)
0 Votes
Will i land a job
1 Votes
Course
1 Votes
Why we use oops in python rather than any function ?
1 Votes
someone helps how can i make two for loops over a 2d array in c ( i didn't learned pointers yet )
0 Votes
why is my leaderboard diferent than my brothers
0 Votes
Project ideas
1 Votes
What do you think would be good for some new courses?
0 Votes
Do you think AI will replace programmers?
0 Votes