How can one create a package in Java:
In a book i read its :
package package_name public class whatever{} . . . But shouldn't this be enclosed in parenthesis such as :
package package_name { public class whatever{} . . . } Just a minor confusion. Can anyone give me an example of the correct syntax?