title: What is going wrong in my code when I increase the values that the for loops start and end with?
body: <p>This is Project Euler's Problem #4</p>
  
  <p>I was able to get the same solution that they give when they first present the problem. (The  the product of two 2-digit numbers is 9009 = 91 × 99.) However, once I try to do it for three digit numbers, I get nothing displaying in the console.</p>
  
  <p>So when I start the loops with <code>for(i = 10; i &lt; 99; i++)</code> and <code>for(j = 10; j &lt; 99; j++)</code> I get to the solution 9009. However, that is not the case when I change it.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public class LargestPalindromeProduct {
  
  public static String reverseNumber(String x) {
  
      String number = x;
      String numberReversed = new StringBuffer(number).reverse().toString();
  
      return numberReversed;
  }
  
  public static void main(String[] args) {
  
  //A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
  
  //Find the largest palindrome made from the product of two 3-digit numbers. 
  
      int x = 0;
  
      for(int i = 100; i &lt; 1000; i++) {
  
          for(int j = 100; j &lt; 1000; j++) {
  
              x = i*j; 
  
          }
  
  
          if((String.valueOf(x)).equals(reverseNumber(String.valueOf(x)))) {
  
              System.out.println(x);
  
          }
  
  
  
      }
  
  
    } // close main
  } // close class
  </code></pre>