We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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);
}
}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Generics
You are viewing a single comment's thread. Return to all comments →
public class Solution {
}