title: Not found string value on array
body: <p>I am a beginner on java.</p>
  
  <p>Why it always show not found?</p>
  
  <p>and how exactly make a not found string value on array?</p>
  
  <pre><code>    String[] array = new String[10];
      String b = "5";
      for (int i = 0; i &lt; 10; i++) {
          String in = String.valueOf(i);
          array[i] = in;
      }
      for (int i = 0; i &lt; 10; i++) {
          if (b.equals(array[i])) {
              System.out.println("found " + array[i]);
          } else if (!b.equals(array[i])) {
              System.out.println("not found");
              System.exit(0);
          }
      }
  }
  </code></pre>