Question: This is Java programing. The file ( fruit.txt ) contains name of fruitsYou may use ArryList to save the data into your memory. Your program

This is Java programing. The file (fruit.txt) contains name of fruitsYou may use ArryList to save the data into your memory. Your program choose one of the fruits using random method, then outputs the selected fruit name after using Collections.shuffle. User can answer the exact name of the fruit. You are required to use Collections.shuffle for this program. Dont need to check whether the answer is collect or not.

B A N A N A A P P L E O R A N G E G R A P E A P R I C O T H O N E Y B E R R Y P A P A Y A B L U E B E R R Y C H E R R Y R A S P B E R R Y G R A P E F R U I T

Out put(Bold is User input)

R G E N A O

Orange

G P A R E

Grape

N A A N A B

Banana

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!