Skip to content

Commit 3b00439

Browse files
authored
Testing the github not showing languages maybe it would work
1 parent 2d9388a commit 3b00439

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

LanguageNotShown.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import java.util.*;
2+
3+
class TESTING {
4+
static void createHashMap(int arr[])
5+
{
6+
HashMap<Integer, Integer> hmap = new HashMap<Integer, Integer>();
7+
for (int i = 0; i < arr.length; i++) {
8+
Integer c = hmap.get(arr[i]);
9+
if (hmap.get(arr[i]) == null) {
10+
hmap.put(arr[i], 1);
11+
}
12+
else {
13+
hmap.put(arr[i], ++c);
14+
}
15+
}
16+
System.out.println(hmap);
17+
}
18+
public static void main(String[] args)
19+
{
20+
int arr[] = { 7,8,9,-3,5,9 };
21+
createHashMap(arr);
22+
}
23+
}

0 commit comments

Comments
 (0)