Question: the input is: [ celery + cereal + carrot ] [ apricot + milk + oatmeal ] [ peas + garlic + peach ] then
the input is:
celerycerealcarrot
apricotmilkoatmeal
peasgarlicpeach
then the output is:
cerealmilkgarlic import java.util.Scanner;
public class JoinMultipleSeconds
public static void mainString args
Scanner scnr new ScannerSystemin;
String batch;
String batch;
String batch;
String secondOfBatch;
String secondOfBatch;
String secondOfBatch;
String secondItems;
FINISH THE CODE: batch scnrnextLine;
batch scnrnextLine;
batch scnrnextLine;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
