programming help
import java.io.*;
import java.util.Scanner;
import java.util.ArrayList;
// imports needed files
publicclass FileRead
{
publicstaticvoid main(String[] args)
{
int sum = 0;
int max = 0;
int min = 1000;
int count = 0;
//creates all instance variables and sets them to correct values
try
{
FileReader reader =new FileReader("input.txt");
//creates a new filereader that read in from input.txt
Scanner in =new Scanner(reader);
//creates a new scanner with input of reader
ArrayList<Integer> numbers =new ArrayList<Integer>();
//creates an array list for the numbers
while(in.hasNextInt())
//checks to see if there is more data
{
int x = in.nextInt();
//sets the number equal to x
numbers.add(x);
//adds the number to the array list
sum = sum + x;
//finds the sum of the numbers
if(x > max)
{
max = x;
}
//finds the max if the numbers
if(x < min)
{
min = x;
}
//finds the min of the numbers
count++;
//finds the number oif numbers
}
PrintWriter out =new PrintWriter("output.txt");
//creates a new printwriter that prints the output to a file called output.txt
out.println("The sum is: " + sum);
out.println("The maximum value is: " + max);
out.println("The minimum value is: " + min);
out.println("The number of values is: " + count);
//prints values
out.close();
//closes the output.txt file
}
catch(IOException e)
{
System.out.println("Error processing file: " + e);
}
//catches the IOException if found
}
}
There is my program and my input.txt is just a bunch of numbers. My question is how do you run this program? I go to run java application and it gives me this message. Exception in thread "main" java.lang.NoClassDefFoundError: FileRead. Can anyone help me please?

