Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
それは単なる命名規則ですか?シェルからプログラムを実行しているときにメソッドを呼び出せないのはなぜですか
$> java myPackage.MyClass.myOwnEntryPoint(String[] str)
はい、これは C から継承された命名規則です。この方法の利点は、コードを見るだけで、どのメソッドがメイン メソッドであると想定されているかを非常に簡単に見つけることができることです。