mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 03:37:58 +07:00
23 lines
433 B
Java
23 lines
433 B
Java
// "Replace with collect" "true"
|
|
package com.google.common.collect;
|
|
|
|
import java.util.*;
|
|
|
|
class Maps {
|
|
public static <K, V> HashMap<K, V> newHashMap() {
|
|
return new HashMap<K, V>();
|
|
}
|
|
}
|
|
|
|
public class Test {
|
|
public void test() {
|
|
Map<String, Integer> map = Maps.newHashMap();
|
|
for(int <caret>i=0; i<10; i++) {
|
|
if(i%2 == 0) {
|
|
map.put(String.valueOf(i), i);
|
|
}
|
|
}
|
|
System.out.println(map);
|
|
}
|
|
}
|