i am writing a java program with 2 string arrays that looks like   String[] flavor1 = {"Chocolate", "Vanilla", "Strawberry"}; String[] toppings = {"Sprinklez", "Choco Chips", "Cherrys", "Hot Fudge"};   and What i want to know/do is could I make a System.out.println() statement that will allow me to display the corresponding flavor and topping that I choose. Please give me the correct code If possible   You ordered " + flavor + "" + topping + "ice cream

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question
So i am writing a java program with 2 string arrays that looks like
 
String[] flavor1 = {"Chocolate", "Vanilla", "Strawberry"};
String[] toppings = {"Sprinklez", "Choco Chips", "Cherrys", "Hot Fudge"};
 
and What i want to know/do is could I make a System.out.println() statement that will allow me to display the corresponding flavor and topping that I choose. Please give me the correct code If possible
 
You ordered " + flavor + "" + topping + "ice cream
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Adjacency Matrix
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT