Please enable JavaScript to use CodeHS

Ciencias de la computación, Nivel A (Nitro)

Lesson 4.3 Desarrollando algoritmos mediante Strings

Description

En esta lección, los estudiantes aprenderán cómo desarrollar algoritmos usando Strings. Los estudiantes recorrerán Strings usando un comando For loop y el comado print.length() (imprimir longitud).

for(int i = 0; i < string.length(); i++)
{
        String character = string.substring(i, i+1);
}

Esta lección corresponde al tema 4.3 de Programación Avanzada de Ciencias Computacionales.


Objective

Students will be able to:

  • Develop an algorithm using Strings
  • Find if one or more substrings has a particular property
  • Determine the number of substrings that meet specific criteria
  • Create a new string with the characters reversed