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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started