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.
Thanks for your feedback!
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.
Thanks for your feedback!
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.
Thanks for your feedback!
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.