質問

I've been programming in Java for 6 weeks now, and was wondering why in println the l is lower case, but in most other methods each word starts with an upper case letter.

Is this because line is abreviated? Are there a set of standards that I should be aware of when naming methods. I've had a look through the Sun standards, and can't see a rule anywhere about making the first letter of an abrivated word lower case...

役に立ちましたか?

解決

It's because println existed way before Java

他のヒント

There's many other more jarring inconsistencies if you look hard enough. The naming standard suggests that there should never be runs of capitals, even in abbreviations. Uri, Url, UrlConnection, HttpClient are the expected names of cases.

Unfortunately, changing them is unlikely to be worth the effort?

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top