title: My Java project doesn't print out anything
body: <p>Here is my code:</p>
  <pre><code>public class Code {
  
      /**
       * @param args the command line arguments
       */
      public static void main(String[] args) {
         reverse(-123);
  
      }
  
      public static int reverse(int x) {
  
          String str = Integer.toString(x);
          char c[] = new char[str.length()];
          for (int i = 0; i &lt; str.length(); i++) {
              c[i] = str.charAt(str.length() - 1 - i);
  
          }
          if (c[str.length()-1] == '-') {
              for (int i=c.length-2; i &gt;=0; i--) {
                  c[i+1] = c[i];
              }
              c[0] = '-';
          }
          String n = new String(c);
          int re = Integer.parseInt(n);
          return re;
  
      }
  }
  </code></pre>
  <p>I'm doing a Java exercise which is to change the order of an Integer to reverse with the '-' in it, but when I run the program, it doesn't print out anything, please help me solve this!!</p>