Sum positive numbers using 10 inputs from user

Hi

I'm a little confused about this, I can't seem to get this to work corretly. What I'm trying to accomplish is I'm taking ten positive double number inputs and only printing out the positive ones plus the total. The problem is I don't know how to only have it except 10 inputs and also it's not totaling the inputs correctlly. Please help. Thank you

Code:

`import java.util.*; `

public class Sum

{

static Scanner console = new Scanner(System.in);

static final int N = 10;

public static void main(String[]args)

{

double number;

int total = 0;

System.out.println("Please enter 10 numbers, \n"

+ "adds the positive numbers, and displays the totals.");

System.out.print("Please enter " + N + " numbers; seperate each with a space: ");

for (int w = 1; w <= N; w++)

{

number = console.nextDouble();

if (number > 0)

total += number;w++;

{

continue;

}

}

System.out.println("The total of the positive numbers is: " + total);

}

}