I am new to Java and recently learnt about creating user defined packages to be later imported and used in projects . I created my own package but when I entered package at the top of my file , it started showing errorsScreenshot of my screen
I also tried to change my directory name as I thought the name of my folder could have been violating naming convention of identifiers in Java.
New contributor
Sidaqpreet Singh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.