title: Java: I am receiving an unexpected type error(required: variable; found: value) when setting the value of a character location in a string
body: <pre><code>public static void octIn(String[] input, String octString)
      {
          String strString, biString;
          String[] str = new String[2];
          //Octal to Binary
          biString = Integer.toBinaryString(Integer.parseInt(octString, 8));
          //Binary to String
          String[] bi = splitBi(biString);
          for (int i = 0; i &lt; 3; i++)
          {
              for (int x = 0; x &lt; 3; x++)
              {
                  if (bi[i].charAt(x) == 0)
                      str[i].charAt(x) = '-';
                  else 
                  {
                      switch(x)
                      {
                          case 0:
                              str[i].charAt(x) = 'r';
                              break;
                          case 1:
                              str[i].charAt(x) = 'w';
                              break;
                          case 2:
                              str[i].charAt(x) = 'x';
                              break;
                      }
                  }
              }
          }
      }
  </code></pre>
  
  <p>I am wondering why the following error is appearing, as well as how to fix it:</p>
  
  <pre><code>ACSL1.java:36: error: unexpected type
                  bi[i].charAt(x) = '1';
                              ^
    required: variable
    found:    value
  </code></pre>
  
  <p>note: others are appearing, but I thought it would be redundant to show those as well.</p>