EclipseをIDEとして使用しています。しかし、Javaでクラスを作成すると、同じ名前と同じデータを持つ別のクラスが自動的に作成されます。しかし、クラスのいずれかを削除すると、他のクラスも削除されます。
2 に答える
0
ソース フォルダーを右クリックしてsrc
クラスを追加すると、単一のクラスのみが作成されます。他のフォルダにあるものは、今のところ気にする必要はありません。
また、サイトのガイドラインとよくある質問もお読みください。これは、標準のフォーラムとは異なります。:)
于 2012-12-10T08:44:38.163 に答える
0
You are creating a .java
file. This gets compiled to a .class
file with the same name. These compiled classes are by default located in a directory called bin
which is not shown in eclipse. But you can see this in the file system. You need the .class
files to run your application so you shouldn't delete them.
于 2012-12-10T08:46:32.607 に答える