here is some code I have gotten done so far, using the tips you guys submitted. there seems to be a few bugs in it though..one error says it cannot access LargestValue because it is a non static class..

what could be causing that error message?
also: I havent yet entered a termination phase..I am not sure what to put.
//LargestValue.java Assignment 6946
//casey clark student no.:
import java.util.Scanner; //scanner class import declaration
class LargestValue
{
public void determineLargestValue()
{
//create Scanner to obtain input from command window
Scanner input = new Scanner(System.in);
int total;
int intCounter;
int number=0;//currently input number
int largest;//largest number found so far
//initialization
total=0;
intCounter=1;
largest=0;
while (number<10){
System.out.print("Enter number: ");
number = input.nextInt();
total= total + number;
intCounter = intCounter ++;
if (number>largest)
largest=number;
total += number;
intCounter++;
}//end while
//termination phase
//display total
System.out.printf("\nThe largest of all 10 integers is:%d\n", largest);
}//end method LargestValue
}//end class
//LargestValueTest.java
//invoke the determine largest value method in LargestValue class
public class LargestValueTest{
public void main(String args[])
{
LargestValue.determineLargestValue();//find the largest integer in 10
}//end main
}//end class