What is “src” directory created by Eclipse?

前端 未结 4 1488
清酒与你
清酒与你 2020-12-10 16:23
  1. I just installed Eclipse.

  2. The Eclipse created the \"workspace\" folder.

  3. In this folder I created a \"game\" sub-folder (for my class

4条回答
  •  攒了一身酷
    2020-12-10 16:42

    The convention for Java is that your Java files are arranged by namespace under a 'src' directory. So if your application's namespace is com.example.myGame your Java files will be located thus src\com\example\myGame\MyClass.java.

提交回复
热议问题