title: What's wrong with my showChar method? Simple program intro to methods
body: <h1>//Ch5a Program</h1>
  
  <p>'I'm supposed to use a method to display a certain letter of a word input by the user.</p>
  
  <p>I need to use showChar.
  There aren't really any obvious errors that I can see and I've worked on it for a couple hours.'</p>
  
  <pre><code>import javax.swing.JOptionPane;
  public class Ch5a {
      public static void main(String[] args){
          String inputString = JOptionPane.showInputDialog("What word would you like to analyze?");
          String inputNumberString = JOptionPane.showInputDialog("What letter would you like to see? (Eg: For the second letter of 'dog', input 2)");
          int inputNo;
          inputNo = Integer.parseInt(inputNumberString);
      /**
       At this point, i have an input number from the user(inputNo) and I have a word from the user(inputString).
       I then print the inputNo for testing.
       */
          System.out.println(inputNo);
      //time to call the method.
          char answer;
      //I declare the character answer.
          answer = showChar(inputString, inputNo);
      //i set it equal to the result of the method.
          System.out.println("The " + inputString +" number character in " + inputNo + " is" + answer);
  
  }
      public static char showChar(String inputString, int inputNo){
       //local variable
          char result;
          result = showChar(inputString, inputNo); //user's chosen character
      //returning whatever i want in place of the method call(in this case, "result")
          return result;
      }
  }
  </code></pre>