Top Java Methods
Below is the collection of the most frequently used Java methods.
You may also use the search function to quickly find the examples you need.
-
1. java.util.List. add ( )(100%)
-
2. org.junit.Assert. assertEquals ( )(53%)
-
3. java.util.Map. put ( )(46%)
-
4. java.util.List. size ( )(44%)
-
5. java.util.List. get ( )(26%)
-
6. java.util.Iterator. hasNext ( )(26%)
-
7. java.util.ArrayList. add ( )(26%)
-
8. java.util.Iterator. next ( )(23%)
-
9. android.util.Log. d ( )(22%)
-
10. java.util.Arrays. asList ( )(22%)
-
11. java.util.Map. Entry ( )(21%)
-
12. java.util.Map. get ( )(20%)
-
13. java.util.Set. add ( )(17%)
-
14. org.junit.Assert. assertTrue ( )(17%)
-
15. java.util.List. isEmpty ( )(15%)
-
16. java.io.File. exists ( )(14%)
-
17. java.util.Collections. sort ( )(13%)
-
18. android.util.Log. e ( )(12%)
-
19. java.util.Objects. requireNonNull ( )(11%)
-
20. android.view.View. findViewById ( )(10%)
-
21. java.util.HashMap. put ( )(10%)
-
22. java.io.IOException. printStackTrace ( )(10%)
-
23. java.util.ArrayList. size ( )(10%)
-
24. java.util.List. addAll ( )(10%)
-
25. android.util.Log. i ( )(9%)
-
26. android.text.TextUtils. isEmpty ( )(9%)
-
27. android.content.Intent. putExtra ( )(9%)
-
28. android.view.LayoutInflater. inflate ( )(9%)
-
29. java.util.Collections. emptyList ( )(9%)
-
30. java.util.Map. entrySet ( )(8%)
-
31. ims.framework.enumerations.SortOrder. DESCENDING ( )(8%)
-
32. com.google.common.collect.Lists. newArrayList ( )(7%)
-
33. org.junit.Assert. assertNotNull ( )(7%)
-
34. java.util.List. toArray ( )(7%)
-
35. android.view.MenuItem. getItemId ( )(6%)
-
36. java.util.Calendar. getInstance ( )(6%)
-
37. android.widget.TextView. setText ( )(6%)
-
38. java.util.ArrayList. get ( )(6%)
-
39. java.io.File. isDirectory ( )(5%)
-
40. java.sql.ResultSet. next ( )(5%)
-
41. java.util.List. iterator ( )(5%)
-
42. java.io.BufferedReader. readLine ( )(5%)
-
43. java.util.Collection. add ( )(5%)
-
44. org.junit.Assert. fail ( )(5%)
-
45. android.util.Log. w ( )(5%)
-
46. java.util.Objects. equals ( )(5%)
-
47. java.util.regex.Pattern. compile ( )(5%)
-
48. java.io.File. delete ( )(5%)
-
49. java.io.ByteArrayOutputStream. toByteArray ( )(5%)
-
50. org.junit.Assert. assertFalse ( )(5%)
All Pages: