title: Java Loop alternate Values
body: <p>So saying I had this Loop </p>
  
  <pre><code>for (int i = 0; i &lt; InfomationText.length; i++) {
         System.out.println("Hello World");
  }
  </code></pre>
  
  <p>But every second time it loops 1 value I need the string to "Hello World1"</p>
  
  <p>Eg </p>
  
  <ul>
  <li>Index 0: = Hello World</li>
  <li>Index 1: = Hello World1</li>
  <li>Index 2: = Hello World</li>
  <li>Index 3: = Hello World1</li>
  </ul>
  
  <p>Thanks in advance.</p>