• + 1 comment

    public class Solution {

    public static<Integer, String> void printArray(int arr[],String arr1[]){
        for(int i = 0; i < arr.length; i++){
            System.out.println(arr[i]);
        }
        for(int i = 0; i < arr1.length; i++){
            System.out.println(arr1[i]);
        }
    
    }
    
    public static void main(String[] args) {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
        int [] arr = {1,2,3};
        String [] arr1 = {"Hello","World"};
        Solution s = new Solution();
        s.printArray(arr,arr1);
    
    }
    

    }