Question: the input is: [ celery + cereal + carrot ] [ apricot + milk + oatmeal ] [ peas + garlic + peach ] then

the input is:
[celery+cereal+carrot]
[apricot+milk+oatmeal]
[peas+garlic+peach]
then the output is:
cereal+milk+garlic import java.util.Scanner;
public class JoinMultipleSeconds {
public static void main(String[] args){
Scanner scnr = new Scanner(System.in);
String batch1;
String batch2;
String batch3;
String secondOfBatch1;
String secondOfBatch2;
String secondOfBatch3;
String secondItems;
FINISH THE CODE: batch1= scnr.nextLine();
batch2= scnr.nextLine();
batch3= scnr.nextLine();

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!