Question: 5 2 2 5 6 2 . 3 5 7 8 1 9 4 q areqy ? Jump to level 1 Variables groceryFStream and inFS
qareqy
Jump to level
Variables groceryFStream and inFS are FilelnputStream and Scanner, respectively. String dataFileName is assigned a file's name read from input. Perform the following task:
Assign groceryFStream with a FilelnputStream that opens the file dataFileName for reading.
Assign inFS with a Scanner created using groceryFStream.
Click here for example
guavalnputtxt
import java.util. Scanner;
import java.ioFileInputStream;
import java.ioIOException;
public class GroceryDataProcessor
public static void mainString args throws IOException
Scanner scnr new Scanner
System.in;
String dataFileName;
double guavaWeight;
FileInputStream groceryFStream null;
Scanner inFS null;
dataFileName ;
Your code goes here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
