Professional Documents
Culture Documents
and two arrays of that length - one of integers and another of strings. The code
must also take an integer and a String as input, and print the number of
occurrences of the integer and the string in the integer array and the string
array, respectively.
Format of input:
Length of the arrays
Elements in the integer array (in separate lines)
Element to count in the integer array
Elements in the string array (in separate lines)
Element to count in the string array
import java.util.*;
class ArrayExample <T>{
T[] a;