Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions