什么是最有用和最完整的 Java 小抄?

我需要一个 Java 的备忘单,并开始四处寻找,但找不到一个似乎“规范”-这让我感到惊讶,考虑到如此广泛的语言。有经验的 Java 程序员可以建议一个备忘单,这是 很有用(组织得非常好,你实际上经常使用它)和 完整(涵盖真实世界的日常使用)请?

相比之下,下面是我认为的 Python 的规范备忘单: http://rgruet.free.fr/PQR26/PQR2.6.html

它是完整的(语法、类型、语句、内置、公共模块、习惯用法)和有用的(组织良好: 分段和超链接; 易于搜索和探索)。

此外,我已经查看了这里的清单: http://devcheatsheet.com/tag/java/,并且没有找到与上面的 RGruet 的 Python 备忘单相当的备忘单。在 Google 中“ Java 备忘单”的最上面的列表是 http://www.cs.princeton.edu/introcs/11cheatsheet/,它相当完整,但是组织起来没有用处。外面一定有更好的东西?我知道 JavaAPI 文档,但是我更希望看到 链接到,而不是被的备忘单。

更新

一些 SO 成员认为这个问题是主观的,但是我认为我解释我的标准是相当客观的: 完整性(内容)和有用性(表示)在这种情况下并不难判断。我已经接受了其中一个更有用的答案,但仍然对 Java 没有规范的备忘录感到惊讶。

132034 次浏览

Here is a great one http://download.oracle.com/javase/1.5.0/docs/api/

These languages are big. You cant expect a cheat sheet to fit on a piece of paper

This Quick Reference looks pretty good if you're looking for a language reference. It's especially geared towards the user interface portion of the API.

For the complete API, however, I always use the Javadoc. I reference it constantly.

It's not really a cheat-sheet, but for me I setup a 'java' search keyword in Google Chrome to search over the javadoc, using site:<javadoc_domain_here>.

You could do the same but also add the domain for the Sun Java Tutorial and for several Java FAQ sites and you'd be OK.

Otherwise, StackOverflow is a pretty good cheat-sheet :)

found one interesting cheat sheet here.. http://introcs.cs.princeton.edu/java/11cheatsheet/

  1. I have personally found the dzone cheatsheet on core java to be really handy in the beginning. However the needs change as we grow and get used to things.

  2. There are a few listed (at the end of the post) in on this java learning resources article too

  3. For the most practical use, in recent past I have found Java API doc to be the best place to cheat code and learn new api. This helps specially when you want to focus on latest version of java.

  4. mkyong - is one my fav places to cheat a lot of code for quick start - http://www.mkyong.com/

  5. And last but not the least, Stackoverflow is king of all small handy code snippets. Just google a stuff you are trying and there is a chance that a page will be top of search results, most of my google search results end at stackoverflow. Many of the common questions are available here - https://stackoverflow.com/questions/tagged/java?sort=frequent