Comparing 2 arrays and adding some text to the common element of the master array?
<p>I have to compare a master array with a child array and tag the master array with a certain text (say "#") for the common ones - </p>

<pre><code>MasterArray = {"A", "B", "C", "D", "E"}
ChildArray = {"A", "C"}

OutputArray = {"A#", "B", "C#", "D", "E"}
</code></pre>

<p>The output will be displayed directly to <code>JList</code>. I am using it here to explain the requirement.</p>

<p>What should I use to get the same output...?</p>
