GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes building inheritance tree in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "building inheritance tree in eclipse" Watch "building inheritance tree in eclipse" New topic
Author

building inheritance tree in eclipse

christian kaden
Greenhorn

Joined: May 01, 2013
Posts: 10
i need help trying to build inheritance tree in eclipse

[MODERATOR ACTION: Removed link to copyrighted material. We can't allow you to post or distribute copyrighted materials at the Ranch. Please keep this in mind when posting in the future.]


its in pg 174

i have no idea were to start
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

You'll be better off posting the assignment instructions here. People aren't going to be inclined to follow a link just to find out what your question is. If it's large, then pick one piece and paste that here.

Also, you're expected to ShowSomeEffort(←click) and TellTheDetails(←click) about what you're having trouble with. If you "have no idea where to start," there's not much anyone here can do to help you, except to offer this general advice, which is applicable to all programming projects:

Take a very small piece of it to start with. Think about how you will solve that. Think about the precise, simple steps in the abstract case (that is, NOT in terms of Java). Write the steps down. At this point, you should not have even looked at your computer.

When you can express the steps clearly and precisely, then and only then is it time to start programming. If you "don't know where to start," then start with just getting an empty class to compile--no variables or methods, not even main(). Then add "Hello World" to it. Once that works, start adding your individual steps, or pieces of them. Compile and test often. If you write 10 lines of code without compiling, you're doing it wrong.

Once you have got that piece of your assignment working, repeat the process for each of the rest of the pieces.

If you get stuck along the way, post the details here about what you tried and what's going wrong.
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

Also...

1. The fact that you're using Eclipse has nothing to do with it. You'd solve the problem and write the code the same way no matter what IDE or editor you're using.

2. You shouldn't be using Eclipse or any IDE yet. You should be using a programmer's editor (I'm not sure, but I think SlickEdit, UltraEdit, and Notepad++ are commonly mentioned), and compiling and running on the command line.
christian kaden
Greenhorn

Joined: May 01, 2013
Posts: 10
Jeff Verdegan wrote:Also...

1. The fact that you're using Eclipse has nothing to do with it. You'd solve the problem and write the code the same way no matter what IDE or editor you're using.

2. You shouldn't be using Eclipse or any IDE yet. You should be using a programmer's editor (I'm not sure, but I think SlickEdit, UltraEdit, and Notepad++ are commonly mentioned), and compiling and running on the command line.
its for my school teacher and we have to use eclipse
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7892
    
  21

christian kaden wrote:its for my school teacher and we have to use eclipse

Alright; but it still doesn't make any difference to your program. As far as I can see, this is part of a Chapter from Head First Java, and you're supposed to add methods to some classes that already exist. Do you not have those?

Or are you looking for advice on how to work Eclipse? If so, this question should probably be in another forum, so tell us and we'll move it.

Winston
christian kaden
Greenhorn

Joined: May 01, 2013
Posts: 10
Winston Gutkowski wrote:
christian kaden wrote:its for my school teacher and we have to use eclipse

Alright; but it still doesn't make any difference to your program. As far as I can see, this is part of a Chapter from Head First Java, and you're supposed to add methods to some classes that already exist. Do you not have those?

Or are you looking for advice on how to work Eclipse? If so, this question should probably be in another forum, so tell us and we'll move it.

Winston
were suppose to make classes with codes in the text but i dont get how to do it
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

christian kaden wrote:were suppose to make classes with codes in the text but i dont get how to do it


So you've never written a single class before? Not a single line of Java code?

Then start here. (←click that)
 
GeeCON Prague 2014
 
subject: building inheritance tree in eclipse