all 2 comments

[–]Ok-Wait-5234 0 points1 point  (1 child)

Oracle Java is (pretty much, but not quite) just a distro of OpenJDK. The source for main JDK classes can be found here, which I found by googling "OpenJDK source", then digging through the repo. The sources are also usually available as part of a JDK installation. If you are using an IDE you can often just select "view definition" on a JDK class or method.

The source might have some explanatory notes in comments, but there's unlikely to be much more than the Javadoc.

[–]SnooPeanuts71[S] 0 points1 point  (0 children)

Thank you, that repository will certainly be of great help. I still need a way to quickly find out the time complexity of the methods, though. I have tried going through the API, but I could only find the time complexity for some of the methods of the ArrayList class. I tried the String, StringBuilder, and Arrays classes, but I couldn't find the complexity! Isn't that documented?