i have a file called elements.txt saved into my class, and src. what am i doing wrong?
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
public class periodicTable
{
static Chemical_Elements[] el;
public static void main(String[] args) throws FileNotFoundException
{
File file = new File ("elements.txt");
Scanner scan = new Scanner (file);
System.out.println(file);