Question: Trying to import a Dat fie Temerature.dat into eclipse java project every time I try importing the dat file to my java source project I

Trying to import a Dat fie Temerature.dat into eclipse java project every time I try importing the dat file to my java source project I cannot pull it up any thoughts ? here is what I did I did a Paths.get and the dat file name Temperature.dat in my code what is the easiest way to import that file to my project thanks .

import java.io.IOException; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; import java.util.TreeSet;

public class Main { public static void main(String[] args) throws IOException { System.out.printf("Welcome to temperature analysis!%n%n"); Scanner input = new Scanner(Paths.get("temperatures.dat"));

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!