@@ -0,0 +1,616 @@
+package leetcode.h_index;%0A%0Aimport java.util.Arrays;%0A%0Apublic class Solution %7B%0A    public int hIndex(int%5B%5D citations) %7B%0A        if(citations == null %7C%7C citations.length == 0) return 0;%0A        Arrays.sort(citations);%0A        int ans = 0;%0A        int size = citations.length;%0A        for(int i = 1; i %3C= size; i++)%7B%0A            if(citations%5Bsize - i%5D %3E= i)%7B%0A                if(i %3C size)%7B%0A                    if(citations%5Bsize - i - 1%5D %3C= i)%7B%0A                        ans = i;%0A                    %7D%0A                %7Delse%7B%0A                    ans = i;%0A                %7D%0A            %7D%0A        %7D%0A        return ans;%0A    %7D%0A%7D%0A

Add java solution for 274. H-Index