Doing multiples of a number in java issues with implementation : <p>Im not sure how to go about making this code.. well at least the total part of this. this is my code right now, I understand the math behind it. I'm just not sure how to implement it. Would I use a loop? here is my code as of right now. I know its not correct but its the start of it.</p>

<pre><code>public static void main(String[] args) {
  Scanner in = new Scanner(System.in);
    System.out.println("what number would you like me to multiply: ");
    int number = in.nextInt();
    System.out.println("how many multiples of "+number+" would you like to see: ");
    int multiple = in.nextInt();
    int total = 
    System.out.println("total :"+total);
  }
</code></pre>

<p>here is the output that I would like to get:</p>

<pre><code> What number would you like me to multiply? 4
 How many multiples of 4 would you like to see? 7
 The first 7 multiples of 4 are: 4, 8, 12, 16, 20, 24, 28    
</code></pre>
