Question: Ex . For the input: 1 9 1 , 1 4 0 , 1 2 3 , 1 8 7 , 1 9 6 3

Ex. For the input:
191,140,123,187,196
37,28,27,36,24
then the output is:
191187
import java.util.scanner;
public class combineArrays {
public static void main(string[] args){
Scanner scnr = new Scanner(
System.in);
final int NUM_VALS =5;
int[] busNumbers = new int [NuM_VALS];
int[] distanceTraveled = new int [NUM_VALS];
int i;
for ; i NUM_VALS; ++i
 Ex. For the input: 191,140,123,187,196 37,28,27,36,24 then the output is: 191187

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!