1. FileReader fr = new FileReader(myDVDFile.data); 2. BufferedReader br = new Bu
ID: 3646666 • Letter: 1
Question
1. FileReader fr = new FileReader(myDVDFile.data);2. BufferedReader br = new BufferedReader();
3. String dvdName, dvdPrice, dvdShelf;
4. dvdName = br.readLine();
5. dvdPrice = br.readLine();
6. dvdShelf = br.readLine();
Consider the following data from the input file myDVDFile.dat;
Rio 21.00 1A
Bridesmaids 16.00 2C
Thor 20.00 3B
a. What value is stored in the variable name dvdName?
b. What value is stored in the variable name dvdPrice?
c. What value is stored in the variable named dvdShelf?
d. If there is a problem with the values of these variables, what is the problem and how could you fix it?
Explanation / Answer
a)Rio b)21 c)1A d)No prbs
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.