title: How do I perform two tests with different test values?
body: <p>I am a college student and this is my first semester learning Java programming. For the past few days I've been stuck on some things when learning Java. One activity I'm stuck on for my class is this one:</p>
  <p>Retype the statements, correcting the syntax errors.</p>
  <pre><code>System.out.println(&quot;Num: &quot; + songnum);
  System.out.println(int songNum);
  System.out.println(songNum &quot; songs&quot;);
  </code></pre>
  <p>Note: These activities may test code with different test values. This activity will perform two tests: the first with songNum = 5, the second with songNum = 9.</p>
  <p>This is what I have so far:</p>
  <pre><code>import java.util.Scanner;
  
  public class Errors {
     public static void main (String [] args) {
        int songNum;
  
        songNum = 5;
  
        System.out.println(&quot;Num: &quot; + songNum);
        System.out.println(&quot;5&quot;);
        System.out.println(&quot;5 &quot; + &quot;songs&quot;);
  </code></pre>
  <p>The website we are using called Zybooks says the code above is correct for outputting:</p>
  <pre><code>Num: 5
  
  5
  
  5 songs
  </code></pre>
  <p>But I can't figure out what to do to output the same but with the number 9. I've tried doing the same 3 lines for it but it says it's not the correct way to do it. How do output both 5 and 9 for the values?</p>