Contenido del Curso
Java Extended
Java Extended
Substring First and Last Characters Challenge
Note
To solve this task, you need to remember the methods
charAt()
andsubstring()
. You can read more about them in the Java Basics course.
Tarea
Your task is to write a method that returns the substring from the first occurrence of a character to its last occurrence. Then, you need to print the first and last letter of the obtained substring. Write two methods, where one will be used within the other.
¡Gracias por tus comentarios!
Substring First and Last Characters Challenge
Note
To solve this task, you need to remember the methods
charAt()
andsubstring()
. You can read more about them in the Java Basics course.
Tarea
Your task is to write a method that returns the substring from the first occurrence of a character to its last occurrence. Then, you need to print the first and last letter of the obtained substring. Write two methods, where one will be used within the other.
¡Gracias por tus comentarios!
Substring First and Last Characters Challenge
Note
To solve this task, you need to remember the methods
charAt()
andsubstring()
. You can read more about them in the Java Basics course.
Tarea
Your task is to write a method that returns the substring from the first occurrence of a character to its last occurrence. Then, you need to print the first and last letter of the obtained substring. Write two methods, where one will be used within the other.
¡Gracias por tus comentarios!
Note
To solve this task, you need to remember the methods
charAt()
andsubstring()
. You can read more about them in the Java Basics course.
Tarea
Your task is to write a method that returns the substring from the first occurrence of a character to its last occurrence. Then, you need to print the first and last letter of the obtained substring. Write two methods, where one will be used within the other.