Question: Using Java 4. ShowChar 2 points Write a method showchar. The method accepts two arguments: a reference to a string object and an integer. The
4. ShowChar 2 points Write a method showchar. The method accepts two arguments: a reference to a string object and an integer. The integer argument is a character position, the first character at position 0. When a method it should executes display the character at position mentioned Eg showChar("Hello World", 4) should display 'o Output Enter a string: happy Enter a position: 2 The Character at position 2 of the string 'happy' is p
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
