title: Why don't I get any output when I run my code (in Eclipse)?
body: <p>Eclipse isn't showing that I'm doing anything wrong but when I hit run, its console just flashes and stays blank.</p>
  
  <p>Can anyone point out what I'm doing wrong?</p>
  
  <p>I commented most of the code but if you're having trouble trying to figure out what I was doing:</p>
  
  <ul>
  <li>A computer player and user roll a dice. Both dice rolls are random numbers from 1 to 6.</li>
  <li>There are 10 rounds. Whoever wins a round gets a point.</li>
  <li>At the end all points are added together and a winner is declared.</li>
  </ul>
  
  <pre><code>import java.util.Random; // Imports RNG
  
  public class Guarascio_Chap_4_21 {
  
      // Calls for main
      public static void main(String[] args) {
  
          // Create Random Object to create random numbers
          Random randomNumbers = new Random();
  
          // List of variables
          int number;
          int compPlayer;
          int userPlayer;
          int compScore = 0;
          int userScore = 0;
          int numRolls = 10;
  
          // For loop that begins at 1 and counts by 1 until it completes numRolls
          for (number = 1; number &gt;= numRolls; number++)
          {
  
              // CompPlayer rolls the dice, then prints the number
              compPlayer = randomNumbers.nextInt(7)+1;
              System.out.println("Computer rolls a "+ compPlayer);
  
              // UserPlayer rolls the dice, then prints the number
              userPlayer = randomNumbers.nextInt(7)+1;
              System.out.println("User rolls a "+ userPlayer);
  
              // If/Else loop that informs the user which player has won the roll, 1 point is added to winners score 
              if (compPlayer &gt; userPlayer)
              {
                  compScore = (compScore + 1);
                  System.out.println("Computer gains 1 point");
              }
  
  
              else
              {
                  userScore = (userScore + 1);
                  System.out.println("User gains 1 point");
              }
  
              // Print out both users and comps score
              System.out.println("Computers score is " + compScore);
              System.out.println("Users score is " + userScore);
  
  
              // Compare scores to decide winner
              if (compScore &gt; userScore)
              {
                  System.out.println("Computer wins with " + compScore + " points!");
              }
  
              else
              {
                  System.out.println("User wins with " + userScore + " points!");
              }
  
          }
  
      }
  
  }
  </code></pre>