Cho em hỏi :
- tại sao chỉ được tạo ,java trong folder này ?
- Giờ em muốn tạo 1 folder tương tự ví dụ như CuongFramework và tạo thêm các .java trong đó thì làm như thế nào ạ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Đây là cấu trúc của maven rồi em ạ, tất nhiên là em có thể chỉ định được folder khác, nhưng như thế quá phức tạp và không ai làm thế cả
2. Anh chưa hiểu ý em là gì, ý em là em muốn tạo 1 package hay muốn tạo 1 module mới?
2.1 Package: là nơi sẽ chứa các file java của em, phải sử dụng package vì nó sẽ giúp em quy hoạch được các file java có chức năng tương đồng vào 1 chỗ, hoặc có nhiều lớp trùng tên nhau.
2.2 Module bản chất là 1 project nhỏ, em chia ra để project nó được khoa học hơn.
em cảm ơn ạ. Theo keyword anh đưa em tìm ra giải pháp cho vấn đề rôi ạ.
Đây là 2 link em tham khảo:
https://stackoverflow.com/questions/12192919/how-to-add-non-source-folders-to-intellij-idea-project
https://www.jetbrains.com/idea/guide/tutorials/hello-world/creating-a-package-and-class/
Ok em