Javas equivalent of C .h files
What would the the Java equivalent of .h files for C be?I'm just looking for a name/tag so I can look it up.
> What would the the Java equivalent of .h files for C> be?> > I'm just looking for a name/tag so I can look it up.There's nothing like .h files in Java.
kajbja at 2007-7-12 18:27:17 >

Hmmm, not even something that I can use to declare what functions are mandatory?
Mandatory for what?Maybe you're looking for Javadoc documentation.
In some ways implementing interfaces might constitute a means for what you want to do - this enables you to establish what is called a contract of sorts.
> What would the the Java equivalent of .h files for C> be?> > I'm just looking for a name/tag so I can look it up.Thanks for bringing up old memories and making me spit up in my mouth a little.
> Hmmm, not even something that I can use to declare> what functions are mandatory?Why do you think you need to do that?
kajbja at 2007-7-12 18:27:17 >

Anyway... What are you trying to do? What is your goal? Looking for C analogies is not the best approach to programming in Java ;-)
Well I used to like .h files because you would name the function prototypes (just remembered the name), and you would have a nice overview of what variables/functions were contained within each class.
So yea my goal is to make my code as readable as possible. Perhaps the interface mentioned will work....I am going to research.Thanks
> Well I used to like .h files because you would name> the function prototypes (just remembered the name),> and you would have a nice overview of what> variables/functions were contained within each class.Generate javadoc in that case.
kajbja at 2007-7-12 18:27:17 >

Yeah it is not clear, OP, if you mean to enforce or merely inform.
>Generate javadoc in that case.Interesting, I took a course In Java first year, and I vaguely remember something about this. I'll take a look. Thanks :).
> Yeah it is not clear, OP, if you mean to enforce or> merely inform.Just to inform.
> > Yeah it is not clear, OP, if you mean to enforce
> or
> > merely inform.
>
> Just to inform.
You do know what javadoc is? Here's the javadoc for JSE 6:
http://java.sun.com/javase/6/docs/api/index.html
It's generated from source code.
kajbja at 2007-7-12 18:27:17 >

Get an IDE with code collapse.
> It's generated from source code.and horribly verbose paragraphs of ugly html codethat pollute all your java goodness.
> > Yeah it is not clear, OP, if you mean to enforce> or> > merely inform.> > Just to inform.Then yes, you want JavaDoc