title: How to create an array that contains 26 english letters but the order to be set by an input
body: <p>I want to know how to create an array that contains 26 english letters but the order of them to be: e.g. </p>
  
  <p>INPUT: problem</p>
  
  <p>and the array would be:</p>
  
  <p>'p','r','o','b','l','e','m','a','c','d','f','g','h','i','j','k','n','q','s','t','u','v','w','x','y','z'.</p>
  
  <p>I tried to do it but i couldnt</p>
  
  <p>My code is here</p>
  
  <pre><code>import javax.swing.JOptionPane;
  
  
  public class TabelaEShkronjave {
  
     public static void main(String[] args) {
      char[][] square = new char[26][26];
  
      /*char[] fjalaKyqe = {'p','r','o','b','l','e','m','a','c','d','f',
              'g','h','i','j','k','n','q','s','t','u','v','w','x','y','z'};
      */
  
      String word = JOptionPane.showInputDialog("Write a word: ");
      char[] wordArray = word.toCharArray();
      char[] alphabet = "abcdefghijklmnopqrstuvwxyz".toCharArray();
    }
  }
  </code></pre>