Posteriormente a investigar con expertos en la materia, programadores de varias áreas y maestros dimos con la solución al problema y la compartimos en este post.
Ejemplo: método length y length() en java
length():InStringclass we have length() method which is used
toreturn the number of characters in string.
Ex:String str = “HelloWorld”;System.out.println(str.length());Str.length() will return11 characters including space.
length : we have length instance variable in arrays which will
return the number of values or objects in array.
For example :String days[]=” Sun”,”Mon”,”wed”,”thu”,”fri”,”sat”;Willreturn6 since the number of values in days array is 6
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)