title: String java please decribe what is happening at the if statemtnt
body: <p>I have identified the line with which I am having trouble with a <code>// Here</code> comment. I don't understand what is happening at the <code>if</code>-statement .</p>
  
  <pre><code>String input = "Hello World!";
  String temp = "";
  String result = "";
  
  for (int i = 0; i &lt;= input.length(); i++) {
      if (i != input.length() &amp;&amp; input.charAt(i) != ' ') {   // Here
          temp = input.charAt(i) + temp;
      } else {
          result = temp + " " + result;
          temp = "";
      }
  }
  
  System.out.println("the result is: " + result);
  </code></pre>