Bookmark Topic Watch Topic
  • New Topic

Java Package or Java Class Question?  RSS feed

 
Brian Bykenhaal
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Report post to moderator
When I am making an new class or package. I should use the new Java Class or New Java Package. I right click the java project and then have some choices. See when I make a new package I am not able to do what I need to do. When I make a new class I can make name it what I want and put the code in that file.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37465
539
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
I don't understand. What do you need to do that the "new package" wizard isn't letting you do?
 
Paweł Baczyński
Bartender
Posts: 2083
44
Firefox Browser IntelliJ IDE Java Linux Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
So you are using an IDE. I'd recommend learning Java by writing your code in a text editor like Notepad++ and compiling/running via command line.
 
Tim Cooke
Marshal
Posts: 4041
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Is this a different question to the one being discussed in this thread earlier on? I didn't really understand that question either.
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Brian Bykenhaal wrote:See when I make a new package I am not able to do what I need to do.

And what is that? Normally, when you create a package, it's because you want to put classes in it; and in Eclipse (I haven't used Netbeans for a while, but I suspect it's similar) you right-click on the package icon and select an action (eg, "Create Class").

I wonder if you're not overthinking this - or possibly, as Pawel suggests, that you're not diving into the world of IDEs too quickly.

Winston
 
Brian Bykenhaal
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thank you very much for all your help you have been a clear way of defining classes and packages better then what I could find online and in my book. I understand the packages and classes in java a lot better now and how to use Netbeans to make them. I have notepad ++ and Netbean, if I have been working with Netbeans because Oracle java book said I should start with it. I used Notepad++ I hear that Netbeans can be easier because the error check features. Ask me how that going haha some errors it picks up most it will not. I think I fixed the problem. I made a new package to add all the game classes. The original package where my main is stored which I gave the same name as the main. Thanks again
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Report post to moderator
Tim Cooke wrote:Is this a different question to the one being discussed in this thread earlier on? . . .
Proably not. I shall close this thread: please everybody continue discussion in the thread TC linked to.
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Report post to moderator
Brian Bykenhaal wrote:Thank you very much for all your help . . . I have been working with Netbeans because Oracle java book . . .
You're welcome; I am not sure how much we helped, but we obviously did.

Which book? Please reply in your other thread. If you really want error checking by a machine, try Eclipse and findbugs or another style tool. But beware: you will get a list of style queries as long as your arm
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!