--first, you didn't mention how the numbers will be inputted into the program.. You could use GUI to accomplish this similar with Visual Basics Dialogs Box, Input Boxes etc.. or you will input through the console/command line (similar to C scanf).. but in java inputting through the console is trickier than using Java's GUI components..
i found this great post on how to accept input through the console:
http://www.coderanch.com/t/386991/Java-General-beginner/java/reading-integers-using-System
-- the one who posted this is really good (i also don't know this..)
well hope this helps.. good luck..
start of the program..
import java.io.*;
public class inputTenNumbers{
public static void main(String [] args) throws IOException
{
int counter=0;
int sumOfAllInput=0, sumOfPositive=0, sumOfNegative=0;
while(counter<10){
//start of input code
System.out.println("Please Enter a Number (No: " + (counter+1) + "): ");
BufferedReader consoleIn =
new BufferedReader(new InputStreamReader(System.in));
String stringInt = consoleIn.readLine();
int fromConsoleInput = Integer.parseInt(stringInt);
// the variable frmConsoleInput hold the integer value of input
// which is converted to integer because the actual input from
// the console is actually string/characters
//end of input code
counter++;
sumOfAllInput = sumOfAllInput + fromConsoleInput;
if(fromConsoleInput > 0) //sum of positive numbers
sumOfPositive = sumOfPositive + fromConsoleInput;
else //sum of negative numbers
sumOfNegative = sumOfNegative + fromConsoleInput;
}
System.out.println("Sum of all positive numbers: " + sumOfPositive);
System.out.println("Sum of all negative numbers: " + sumOfNegative);
System.out.println("Sum of all numbers: " + sumOfAllInput);
}
}