SlideShare una empresa de Scribd logo
1 de 7
ESTRUCTURA DE DATOS EN JAVA
Sesión 5 y 6 : Trabajo con Objetos String
Universidad Nacional de Educación
Enrique Guzmán y Valle
Pedro Pablo Mesía
LOS STRINGS
Los Strings almacenan texto.Los Strings almacenan texto.
El elemento más básico de un
String es un carácter (char).
El elemento más básico de un
String es un carácter (char).
Strings contienen una cadena de
caracteres.
Strings contienen una cadena de
caracteres.
charchar teclaSalir = ‘#’
El valor char va entre
comillas simples (‘ ’)
StringString cita = “Solo te
queda mirarme”
El valor String va entre
comillas dobles ( “ ” )
Mayúscula inicial.
Es un objeto
USAR CARACTERES ESPECIALES EN STRINGUSAR CARACTERES ESPECIALES EN STRING
Caracteres
Especiales
Salida en Pantalla
’ Comillas Simples
’’ Comillas Dobles
 Barra inclinada
t Tab
b Retroceso (Backspace)
r Retorno Carro
f Salto de línea (Formfeed)
n Nueva Línea (New Line)
Podemos dos
Strings mediante
el operador de
Concatenación.
El operador de
concatenación
es el signo +
El operador de
concatenación
es el signo +
El comportamiento de +
es muy distinto cuando
se aplica a un número o
a un String
El comportamiento de +
es muy distinto cuando
se aplica a un número o
a un String
Aunque suele ser
más común usarlo
para concatenar
(pegar) Strings y
variables.
Aunque suele ser
más común usarlo
para concatenar
(pegar) Strings y
variables.
Los
Strings
son
Objetos
en Java
Los
Strings
son
Objetos
en Java
Esto nos
permite
aplicarles
métodos
Esto nos
permite
aplicarles
métodos
Un método
nos permite
llevar a cabo
una tarea
Un método
nos permite
llevar a cabo
una tarea
equals( )equals( )
Permite
comparar dos
Strings.
Devuelve
verdadero o
Falso
Otro tipo de
método muy
común y muy
utilizado con
Strings
Otro tipo de
método muy
común y muy
utilizado con
Strings
lenghtlenght
Permite saber el
número de
caracteres, el
tamaño que
tiene un String
Modificar
el Caso
toUpperCase( )
Convierte
todos los
caracteres a
letras
mayúsculas.
Convierte
todos los
caracteres a
letras
mayúsculas.
toLowerCase( )
Convierte
todos los
caracteres a
letras
minúsculas.
Convierte
todos los
caracteres a
letras
minúsculas.

Más contenido relacionado

Último

ANTECEDENTES HISTORICOS DE LA MEDICINA FORENSE.pptx
ANTECEDENTES HISTORICOS DE LA MEDICINA FORENSE.pptxANTECEDENTES HISTORICOS DE LA MEDICINA FORENSE.pptx
ANTECEDENTES HISTORICOS DE LA MEDICINA FORENSE.pptxezequielmartinezcata
 
Histología del pelo o cabello-Medicina.pptx
Histología del pelo o cabello-Medicina.pptxHistología del pelo o cabello-Medicina.pptx
Histología del pelo o cabello-Medicina.pptx Estefa RM9
 
Presentación de las glandulas endocrinas del páncreas
Presentación de las glandulas endocrinas del páncreasPresentación de las glandulas endocrinas del páncreas
Presentación de las glandulas endocrinas del páncreasanabel495352
 
Resolucion Ministerial 242-2024-MINSA.pdf
Resolucion Ministerial 242-2024-MINSA.pdfResolucion Ministerial 242-2024-MINSA.pdf
Resolucion Ministerial 242-2024-MINSA.pdfGILMERMANUELASENCIOO
 
10847862 LA HOMEOPATIA, DEFINICON DE .ppt
10847862 LA HOMEOPATIA, DEFINICON DE .ppt10847862 LA HOMEOPATIA, DEFINICON DE .ppt
10847862 LA HOMEOPATIA, DEFINICON DE .pptLEONCIOVASQUEZMARIN2
 
Infarto agudo al miocardio magisterio completa.pptx
Infarto agudo al miocardio magisterio completa.pptxInfarto agudo al miocardio magisterio completa.pptx
Infarto agudo al miocardio magisterio completa.pptxLUISEDUARDOPEREGRINO
 
Diabetes Mellitus 2024 y fisiologia y datos.pdf
Diabetes Mellitus 2024 y fisiologia y datos.pdfDiabetes Mellitus 2024 y fisiologia y datos.pdf
Diabetes Mellitus 2024 y fisiologia y datos.pdfAbelPerezB
 
FARMCOCINÉTICA Y FARMACODINAMIA DE LOS MEDICAMENTOS TÓPICOS
FARMCOCINÉTICA Y FARMACODINAMIA DE LOS MEDICAMENTOS TÓPICOSFARMCOCINÉTICA Y FARMACODINAMIA DE LOS MEDICAMENTOS TÓPICOS
FARMCOCINÉTICA Y FARMACODINAMIA DE LOS MEDICAMENTOS TÓPICOSJaime Picazo
 
MAPA EnfermedadesCerebrovasculares...pdf
MAPA EnfermedadesCerebrovasculares...pdfMAPA EnfermedadesCerebrovasculares...pdf
MAPA EnfermedadesCerebrovasculares...pdfHecmilyMendez
 
MÚSCULOS DEL CUELLO DESCRIPCIÓN ORIGEN INSERCIÓN E INERVACION
MÚSCULOS DEL CUELLO DESCRIPCIÓN ORIGEN INSERCIÓN E INERVACIONMÚSCULOS DEL CUELLO DESCRIPCIÓN ORIGEN INSERCIÓN E INERVACION
MÚSCULOS DEL CUELLO DESCRIPCIÓN ORIGEN INSERCIÓN E INERVACIONPinedaValderrabanoAi
 
Clase 16 Artrologia mmii 2 de 3 (Rodilla y Tobillo) 2024.pdf
Clase 16 Artrologia mmii 2 de 3 (Rodilla y Tobillo) 2024.pdfClase 16 Artrologia mmii 2 de 3 (Rodilla y Tobillo) 2024.pdf
Clase 16 Artrologia mmii 2 de 3 (Rodilla y Tobillo) 2024.pdfgarrotamara01
 
Uso Racional del medicamento prescripción
Uso Racional del medicamento prescripciónUso Racional del medicamento prescripción
Uso Racional del medicamento prescripciónLas Sesiones de San Blas
 
ANAMNESIS Y EXAMEN FISICO DEL SISTEMA RENAL.pptx
ANAMNESIS Y EXAMEN FISICO DEL SISTEMA  RENAL.pptxANAMNESIS Y EXAMEN FISICO DEL SISTEMA  RENAL.pptx
ANAMNESIS Y EXAMEN FISICO DEL SISTEMA RENAL.pptxCENTRODESALUDCUNCHIB
 
Corazon parte 1 introducción - Latarjet.
Corazon parte 1 introducción - Latarjet.Corazon parte 1 introducción - Latarjet.
Corazon parte 1 introducción - Latarjet.AdrianaBohrquez6
 
Manejo adecuado del bulto de ropa quirugico
Manejo adecuado del bulto de ropa quirugicoManejo adecuado del bulto de ropa quirugico
Manejo adecuado del bulto de ropa quirugicoAlexiiaRocha
 
Recién Nacido y escalas para determinar la edad gestacional
Recién Nacido y escalas para determinar la edad gestacionalRecién Nacido y escalas para determinar la edad gestacional
Recién Nacido y escalas para determinar la edad gestacionalrdjaforever
 
1. HISTORIA DE LA FISIOTERAPIA EN EL MUNDO.pptx
1. HISTORIA DE LA FISIOTERAPIA EN EL MUNDO.pptx1. HISTORIA DE LA FISIOTERAPIA EN EL MUNDO.pptx
1. HISTORIA DE LA FISIOTERAPIA EN EL MUNDO.pptxSarayAcua2
 
Dermis, Hipodermis y receptores sensoriales de la piel-Histología.pptx
Dermis, Hipodermis y receptores sensoriales de la piel-Histología.pptxDermis, Hipodermis y receptores sensoriales de la piel-Histología.pptx
Dermis, Hipodermis y receptores sensoriales de la piel-Histología.pptx Estefa RM9
 
Diabetes tipo 2 expo guias ada 2024 apuntes y materal
Diabetes tipo 2 expo guias ada 2024 apuntes y materalDiabetes tipo 2 expo guias ada 2024 apuntes y materal
Diabetes tipo 2 expo guias ada 2024 apuntes y materalf5j9m2q586
 
ANATOMÍA DE PERINÉ ..................pdf
ANATOMÍA DE PERINÉ ..................pdfANATOMÍA DE PERINÉ ..................pdf
ANATOMÍA DE PERINÉ ..................pdfgalmchris6
 

Último (20)

ANTECEDENTES HISTORICOS DE LA MEDICINA FORENSE.pptx
ANTECEDENTES HISTORICOS DE LA MEDICINA FORENSE.pptxANTECEDENTES HISTORICOS DE LA MEDICINA FORENSE.pptx
ANTECEDENTES HISTORICOS DE LA MEDICINA FORENSE.pptx
 
Histología del pelo o cabello-Medicina.pptx
Histología del pelo o cabello-Medicina.pptxHistología del pelo o cabello-Medicina.pptx
Histología del pelo o cabello-Medicina.pptx
 
Presentación de las glandulas endocrinas del páncreas
Presentación de las glandulas endocrinas del páncreasPresentación de las glandulas endocrinas del páncreas
Presentación de las glandulas endocrinas del páncreas
 
Resolucion Ministerial 242-2024-MINSA.pdf
Resolucion Ministerial 242-2024-MINSA.pdfResolucion Ministerial 242-2024-MINSA.pdf
Resolucion Ministerial 242-2024-MINSA.pdf
 
10847862 LA HOMEOPATIA, DEFINICON DE .ppt
10847862 LA HOMEOPATIA, DEFINICON DE .ppt10847862 LA HOMEOPATIA, DEFINICON DE .ppt
10847862 LA HOMEOPATIA, DEFINICON DE .ppt
 
Infarto agudo al miocardio magisterio completa.pptx
Infarto agudo al miocardio magisterio completa.pptxInfarto agudo al miocardio magisterio completa.pptx
Infarto agudo al miocardio magisterio completa.pptx
 
Diabetes Mellitus 2024 y fisiologia y datos.pdf
Diabetes Mellitus 2024 y fisiologia y datos.pdfDiabetes Mellitus 2024 y fisiologia y datos.pdf
Diabetes Mellitus 2024 y fisiologia y datos.pdf
 
FARMCOCINÉTICA Y FARMACODINAMIA DE LOS MEDICAMENTOS TÓPICOS
FARMCOCINÉTICA Y FARMACODINAMIA DE LOS MEDICAMENTOS TÓPICOSFARMCOCINÉTICA Y FARMACODINAMIA DE LOS MEDICAMENTOS TÓPICOS
FARMCOCINÉTICA Y FARMACODINAMIA DE LOS MEDICAMENTOS TÓPICOS
 
MAPA EnfermedadesCerebrovasculares...pdf
MAPA EnfermedadesCerebrovasculares...pdfMAPA EnfermedadesCerebrovasculares...pdf
MAPA EnfermedadesCerebrovasculares...pdf
 
MÚSCULOS DEL CUELLO DESCRIPCIÓN ORIGEN INSERCIÓN E INERVACION
MÚSCULOS DEL CUELLO DESCRIPCIÓN ORIGEN INSERCIÓN E INERVACIONMÚSCULOS DEL CUELLO DESCRIPCIÓN ORIGEN INSERCIÓN E INERVACION
MÚSCULOS DEL CUELLO DESCRIPCIÓN ORIGEN INSERCIÓN E INERVACION
 
Clase 16 Artrologia mmii 2 de 3 (Rodilla y Tobillo) 2024.pdf
Clase 16 Artrologia mmii 2 de 3 (Rodilla y Tobillo) 2024.pdfClase 16 Artrologia mmii 2 de 3 (Rodilla y Tobillo) 2024.pdf
Clase 16 Artrologia mmii 2 de 3 (Rodilla y Tobillo) 2024.pdf
 
Uso Racional del medicamento prescripción
Uso Racional del medicamento prescripciónUso Racional del medicamento prescripción
Uso Racional del medicamento prescripción
 
ANAMNESIS Y EXAMEN FISICO DEL SISTEMA RENAL.pptx
ANAMNESIS Y EXAMEN FISICO DEL SISTEMA  RENAL.pptxANAMNESIS Y EXAMEN FISICO DEL SISTEMA  RENAL.pptx
ANAMNESIS Y EXAMEN FISICO DEL SISTEMA RENAL.pptx
 
Corazon parte 1 introducción - Latarjet.
Corazon parte 1 introducción - Latarjet.Corazon parte 1 introducción - Latarjet.
Corazon parte 1 introducción - Latarjet.
 
Manejo adecuado del bulto de ropa quirugico
Manejo adecuado del bulto de ropa quirugicoManejo adecuado del bulto de ropa quirugico
Manejo adecuado del bulto de ropa quirugico
 
Recién Nacido y escalas para determinar la edad gestacional
Recién Nacido y escalas para determinar la edad gestacionalRecién Nacido y escalas para determinar la edad gestacional
Recién Nacido y escalas para determinar la edad gestacional
 
1. HISTORIA DE LA FISIOTERAPIA EN EL MUNDO.pptx
1. HISTORIA DE LA FISIOTERAPIA EN EL MUNDO.pptx1. HISTORIA DE LA FISIOTERAPIA EN EL MUNDO.pptx
1. HISTORIA DE LA FISIOTERAPIA EN EL MUNDO.pptx
 
Dermis, Hipodermis y receptores sensoriales de la piel-Histología.pptx
Dermis, Hipodermis y receptores sensoriales de la piel-Histología.pptxDermis, Hipodermis y receptores sensoriales de la piel-Histología.pptx
Dermis, Hipodermis y receptores sensoriales de la piel-Histología.pptx
 
Diabetes tipo 2 expo guias ada 2024 apuntes y materal
Diabetes tipo 2 expo guias ada 2024 apuntes y materalDiabetes tipo 2 expo guias ada 2024 apuntes y materal
Diabetes tipo 2 expo guias ada 2024 apuntes y materal
 
ANATOMÍA DE PERINÉ ..................pdf
ANATOMÍA DE PERINÉ ..................pdfANATOMÍA DE PERINÉ ..................pdf
ANATOMÍA DE PERINÉ ..................pdf
 

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Diapositiva 6

  • 1. ESTRUCTURA DE DATOS EN JAVA Sesión 5 y 6 : Trabajo con Objetos String Universidad Nacional de Educación Enrique Guzmán y Valle Pedro Pablo Mesía
  • 2. LOS STRINGS Los Strings almacenan texto.Los Strings almacenan texto. El elemento más básico de un String es un carácter (char). El elemento más básico de un String es un carácter (char). Strings contienen una cadena de caracteres. Strings contienen una cadena de caracteres. charchar teclaSalir = ‘#’ El valor char va entre comillas simples (‘ ’) StringString cita = “Solo te queda mirarme” El valor String va entre comillas dobles ( “ ” ) Mayúscula inicial. Es un objeto
  • 3. USAR CARACTERES ESPECIALES EN STRINGUSAR CARACTERES ESPECIALES EN STRING Caracteres Especiales Salida en Pantalla ’ Comillas Simples ’’ Comillas Dobles Barra inclinada t Tab b Retroceso (Backspace) r Retorno Carro f Salto de línea (Formfeed) n Nueva Línea (New Line)
  • 4. Podemos dos Strings mediante el operador de Concatenación. El operador de concatenación es el signo + El operador de concatenación es el signo + El comportamiento de + es muy distinto cuando se aplica a un número o a un String El comportamiento de + es muy distinto cuando se aplica a un número o a un String Aunque suele ser más común usarlo para concatenar (pegar) Strings y variables. Aunque suele ser más común usarlo para concatenar (pegar) Strings y variables.
  • 5. Los Strings son Objetos en Java Los Strings son Objetos en Java Esto nos permite aplicarles métodos Esto nos permite aplicarles métodos Un método nos permite llevar a cabo una tarea Un método nos permite llevar a cabo una tarea equals( )equals( ) Permite comparar dos Strings. Devuelve verdadero o Falso
  • 6. Otro tipo de método muy común y muy utilizado con Strings Otro tipo de método muy común y muy utilizado con Strings lenghtlenght Permite saber el número de caracteres, el tamaño que tiene un String
  • 7. Modificar el Caso toUpperCase( ) Convierte todos los caracteres a letras mayúsculas. Convierte todos los caracteres a letras mayúsculas. toLowerCase( ) Convierte todos los caracteres a letras minúsculas. Convierte todos los caracteres a letras minúsculas.