Hi Guys
What I am trying to do is this.

String[] array1 = {"off","off","meeting"};

String [] array2 = {"off","off,"off"};

String[] array3 = {"meeting","off","off"};

I want to make an 4th array which will give me "off" at the position where all are off, otherwise it say "bz" at that position.

FOR EXAMPLE: all of the above arrays 2nd position is off, so I shud get

array4 = {"bz","off","bz"};

Hope I made it cleared enough,

Pls help

Thanks

Try a loop that looks at the contents of each of the arrays.
That assumes that all the arrays are the same length.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.