Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Substring First and Last Characters Challenge | String Advanced
Java Extended
course content

Зміст курсу

Java Extended

Java Extended

1. Deep Java Structure
2. Methods
3. String Advanced
4. Classes
5. Classes Advanced

Substring First and Last Characters Challenge

Note

To solve this task, you need to remember the methods charAt() and substring(). You can read more about them in the Java Basics course.

Завдання

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.

Завдання

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.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 3. Розділ 7
toggle bottom row

Substring First and Last Characters Challenge

Note

To solve this task, you need to remember the methods charAt() and substring(). You can read more about them in the Java Basics course.

Завдання

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.

Завдання

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.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 3. Розділ 7
toggle bottom row

Substring First and Last Characters Challenge

Note

To solve this task, you need to remember the methods charAt() and substring(). You can read more about them in the Java Basics course.

Завдання

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.

Завдання

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.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Note

To solve this task, you need to remember the methods charAt() and substring(). You can read more about them in the Java Basics course.

Завдання

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.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 3. Розділ 7
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt