title: How to write a program that asks the user to enter a string, converts it to ASCII Code then use Selection sort?
body: <p>I know how to sort integers and how to convert a character into an ASCII code but I'm having some trouble how to put them together.</p>
  
  <p>Basically I have this code that turns String to ASCII. But I'd like to use selection sort after it prints or before it prints. Do you know how?</p>
  
  <pre><code>public static void main (String [] args)throws IOException{
      BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
  
      System.out.println("Enter Full Name: ");
      String str = input.readLine();
  
              for (int i = 0; i &lt; str.length(); i++){
                  char c = str.charAt(i);
                  int k = (int) c;
                      System.out.println(c + " = " + k);
          }
      }
  }
  </code></pre>