Question: showChar Method write a methd named shoeChart. the method should accept two arguments: a reference to a String object and an integer. the integer argument
showChar Method
write a methd named shoeChart. the method should accept two arguments: a reference to a String object and an integer. the integer argument is a character position within the String, with the first character being at position 0. when the method executes, it should display the character at that character position. here is an example of a call to the method:
showChar("NEW YORK" , 2);
in this call, the method will display the character w because it is in position 2. demonstrate the method in a complete programe.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
