Question: Task 1 : The user will be able to give a string as an argument to the method and the method will return the number
Task : The user will be able to give a string as an argument to the method and the method will return the number of characters in the string including white spaces Complete the method public static int returnTheLengthOfTheString to complete this task. See the method comments for more detail.
Task : The user will be able to give a string and an index position in the string as arguments to the method. The method will return the character located at that index position in the string including white spaces Complete the method public static char returnTheCharacterAtTheGivenIndex to complete this task. See the method comments for more detail.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
