title: Operator == cannot be applied to java.lang.String char
body: <p>I do not get any errors in NetBeans Java Application, but I do get the mentioned error when applying the code into a Android Java Project. I tried <code>if (alpha[i].equals(c)) {</code> but then I would get no results like I do in NetBeans, which is converting a String to Morse e.g. <code>SOS</code> to <code>... --- ...</code></p>
  
  <p>NetBeans Java Application (works, when I type SOS I get ... --- ...):</p>
  
  <pre><code>private static String toMorse(String text) {
      char[] characters = text.toUpperCase().toCharArray();
      StringBuilder morseString = new StringBuilder();
      for (char c : characters) {
          for (int i = 0; i &lt; alpha.length; i++) {
              if (alpha[i] == c) {
                  morseString.append(morse[i] + " ");
                  break;
              }
          }
      }
      return morseString.toString();
  }
  </code></pre>
  
  <p>Android Java Project (doesn't work, when I type in a String, I get nothing): </p>
  
  <pre><code>public String toMorse(String text) {
      char[] characters = text.toUpperCase().toCharArray();
      StringBuilder morseString = new StringBuilder();
      for (char c : characters) {
          for (int i = 0; i &lt; alpha.length; i++) {
              if (alpha[i] == c) { // error is on this line
                  morseString.append(morse[i] + " ");
                  break;
              }
          }
      }
      return morseString.toString();
  }
  </code></pre>
  
  <p>Strange part is that this part of the code works in both NetBeans and Android Studio (when I type in ... --- ... I get SOS): </p>
  
  <pre><code>public String toEnglish(String text) {
      String[] strings = text.split(" ");
      StringBuilder translated = new StringBuilder();
      for (String s : strings) {
          for (int i = 0; i &lt; morse.length; i++) {
              if (morse[i].equals(s)) {
                  translated.append(alpha[i]);
                  break;
              }
          }
      }
      return translated.toString();
  }
  </code></pre>
  
  <p>alpha and morse arrays:</p>
  
  <pre><code>private String[] alpha = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J",
      "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V",
      "W", "X", "y", "z", "1", "2", "3", "4", "5", "6", "7", "8",
  "9", "0", " "};
  
  private String[] morse = {".-", "-...", "-.-.", "-..", ".", "..-.", "--.",
      "....", "..", ".---", "-.-", ".-..", "--", "-.", "---", ".--.",
      "--.-", ".-.", "...", "-", "..-", "...-", ".--", "-..-",
      "-.--", "--..", ".----", "..---", "...--", "....-", ".....",
  "-....", "--...", "---..", "----.", "-----", "|"};
  </code></pre>