Answer is C,
class Foo<K,V>{
private K key;
private V value;
public Foo(K key, V value) {
this.key = key;
this.value = value;
}
public static <T> Foo<T,T> twice(T value) {
return new Foo<T,T>(value,value);
}
}
public class Test {
public static void main (String[] args) throws InterruptedException {
Foo<Object,Object> percentage = new Foo<String,Integer>("Steve",100);
}
}
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Tarik2190
Highly Voted 3 years, 2 months agopul26
Highly Voted 3 years, 7 months agosteefaand
Most Recent 5 months, 4 weeks agoWilsonKKerll
2 years, 4 months agoSvetleto13
3 years, 2 months ago