Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2016
    Posts
    7
    Rep Power
    0

    Post package in NetBeans

    Hello. I recently started to work with the NetBeans IDE instead of DrJava. I noticed a new line of code in my projects that appears in NetBeans.
    It looks like a toLowerCase() version of the .java file name. For example, if my file name is NewProject.java, this would be the line of code:
    Java Code:
    package newproject;
    It always appears at the top of the code, above the class.
    What is this line of code,and what does it do? Please someone explain this to me.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

Similar Threads

  1. NetBeans package help please
    By Tavern_Walker in forum NetBeans
    Replies: 7
    Last Post: 07-31-2014, 08:53 AM
  2. package does not exists - netbeans
    By emosms in forum New To Java
    Replies: 9
    Last Post: 08-22-2013, 06:37 PM
  3. Replies: 3
    Last Post: 03-27-2012, 09:27 AM
  4. Package Problems in NetBeans IDE
    By farmer in forum NetBeans
    Replies: 2
    Last Post: 08-24-2011, 06:35 PM
  5. NetBeans losing package information when crashing
    By Kethas in forum New To Java
    Replies: 4
    Last Post: 03-03-2010, 05:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •