Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a method called showCharacter which takes a String and a position and writes out to the screen the character at the position indicated. Write
Write a method called showCharacter which takes a String and a position and writes out to the screen the character at the position indicated.
Write a main method that asks the user for a String and a position. If the position is longer than the String, or the position is negative, it will keep prompting the user for a valid position. Main will call showCharacter with the String and the position.
Code in java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started