You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
550 B

import java.util.*;
import java.io.*;
public class StockPrices
{
public static void main( String[] args )
{
double total = 0.0;
Scanner inputFile = null;
// Use a loop in the try block to read each line of the file.
// Lecture Slides 13 (posted on D2L) provide a good example
try
{
}
catch( )
{
// A FileNotFoundException needs to be handled here
}
finally
{
}
System.out.println( "The total value is: $" + total );
}
}