not sure what u trying to do, but u need something like this.
public static void main(String[] args) throws FileNotFoundException{
Scanner inFile = new Scanner(new FileReader("File")); // reads...
Type: Posts; User: TimoElPrimo
not sure what u trying to do, but u need something like this.
public static void main(String[] args) throws FileNotFoundException{
Scanner inFile = new Scanner(new FileReader("File")); // reads...
SOLVE. LOL
general form is
sum=o;// initialized
while ( condition)
{
...
sum= sum + num; // update the sum.
count++ // keeps a count.
...
}// end while loop