title: Class project auto-grader says "standard output is not what was expected"
body: <p>I am new to java and am doing a project for my class but I keep getting an error.</p>
  <blockquote>
  <h2>Project</h2>
  <p>Write an application that reads values  representing a time duration in hours, minutes, and seconds and then prints the equivalent total number of seconds. (For example, 1 hour, 28 minutes, and 42 seconds is equivalent to 5322 seconds.)</p>
  <p><strong>SPECIFICATION OF PROMPTS, LABELS AND OUTPUT:</strong> Your code should use these prompts: &quot;hours: &quot;, &quot;minutes: &quot;, &quot;seconds: &quot;. The prompts should not force the user to type  the required input on the next line. After all the inputs, the output  should consist of a single line consisting of an integer  (the total number of seconds) followed by a space followed by a label for the units: seconds. For example:</p>
  <pre><code>hours: 2
  minutes: 10
  seconds: 7
  7807 seconds 
  </code></pre>
  <p><strong>SPECIFICATION OF NAMES:</strong> Your application class should be called Seconds</p>
  </blockquote>
  <p><strong>These are the errors MyProgrammingLab keeps giving me:</strong></p>
  <p><img src="https://i.imgur.com/QZM65hg.png" alt="pic" /></p>
  <p><img src="https://i.imgur.com/IbCLHjA.png" alt="pic2" /></p>
  <p><strong>My Code:</strong></p>
  <pre><code>import java.util.Scanner;
  
  public class Seconds {
      
      public static void main (String[] args){
          
          Scanner stdin = new Scanner(System.in);
          int hours;
          System.out.print(&quot;hours: &quot;);
          hours = stdin.nextInt();
          int minutes;
          System.out.print(&quot;minutes: &quot;);
          minutes = stdin.nextInt();
          int seconds;
          System.out.print(&quot;seconds: &quot;);
          seconds = stdin.nextInt();
          int hourSeconds = (hours * 60) * 60;
          int minuteSeconds = (minutes * 60);
          int secondsTotal = hourSeconds + minuteSeconds + seconds;
          System.out.println(secondsTotal + &quot; seconds&quot;);
      
      }
                              }
  </code></pre>