Course Content
Java Extended
Java Extended
Character Indices Sum Challenge
Task
Write a method that finds the indices of the first and last occurrence of a character in a string and returns their sum
. Keep in mind that some letters may be in uppercase, so convert the string to lowercase beforehand.
Task
Write a method that finds the indices of the first and last occurrence of a character in a string and returns their sum
. Keep in mind that some letters may be in uppercase, so convert the string to lowercase beforehand.
Everything was clear?
Character Indices Sum Challenge
Task
Write a method that finds the indices of the first and last occurrence of a character in a string and returns their sum
. Keep in mind that some letters may be in uppercase, so convert the string to lowercase beforehand.
Task
Write a method that finds the indices of the first and last occurrence of a character in a string and returns their sum
. Keep in mind that some letters may be in uppercase, so convert the string to lowercase beforehand.
Everything was clear?
Character Indices Sum Challenge
Task
Write a method that finds the indices of the first and last occurrence of a character in a string and returns their sum
. Keep in mind that some letters may be in uppercase, so convert the string to lowercase beforehand.
Task
Write a method that finds the indices of the first and last occurrence of a character in a string and returns their sum
. Keep in mind that some letters may be in uppercase, so convert the string to lowercase beforehand.
Everything was clear?
Task
Write a method that finds the indices of the first and last occurrence of a character in a string and returns their sum
. Keep in mind that some letters may be in uppercase, so convert the string to lowercase beforehand.