Write a java program that asks the user to enter a favorite


Write a Java program that asks the user to enter a favorite color, a favorite food, a favorite animal, and the first name of a friend or relative. The program should then print the following two lines, with the user's input replacing the items in italics:
        I had a dream that NAME  ate a COLOR  ANIMAL  and said it tasted like FOOD!
  For example, if the user entered blue  for the color, hamburger  for the food, dog  for the animal, and Jake  for the person's name, the output would be:
        I had a dream that Jake ate a blue dog and said it tasted like hamburger!
Don't forget to put the exclamation mark at the end. 
Input Notes: Each response by the user is a full line of text (terminated by hitting enter on the console). The information is read in this order: name, color, food, animal.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a java program that asks the user to enter a favorite
Reference No:- TGS0114022

Expected delivery within 24 Hours