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.
我创建了一个filename.java 主类来调用包中的其他文件。在我的主类中,我正在设置某些我正在硬编码的参数(文件路径)。我喜欢由用户自己提供参数,我有两个选项,
filename.java
创建一个配置文件并从配置文件中提供参数
创建一个读取用户参数并设置参数的 GUI。