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.
[123 byte] By [jellystonesa] at [2007-11-27 6:52:42]
# 1
> 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 > top of Java-index,Java Essentials,Java Programming...
# 2
Hmmm, not even something that I can use to declare what functions are mandatory?
jellystonesa at 2007-7-12 18:27:17 > top of Java-index,Java Essentials,Java Programming...
# 3
Mandatory for what?Maybe you're looking for Javadoc documentation.
kevjavaa at 2007-7-12 18:27:17 > top of Java-index,Java Essentials,Java Programming...
# 4
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.
abillconsla at 2007-7-12 18:27:17 > top of Java-index,Java Essentials,Java Programming...
# 5
> 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.
Hippolytea at 2007-7-12 18:27:17 > top of Java-index,Java Essentials,Java Programming...
# 6
> 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 > top of Java-index,Java Essentials,Java Programming...
# 7
Anyway... What are you trying to do? What is your goal? Looking for C analogies is not the best approach to programming in Java ;-)
Hippolytea at 2007-7-12 18:27:17 > top of Java-index,Java Essentials,Java Programming...
# 8
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.
jellystonesa at 2007-7-12 18:27:17 > top of Java-index,Java Essentials,Java Programming...
# 9
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
jellystonesa at 2007-7-12 18:27:17 > top of Java-index,Java Essentials,Java Programming...
# 10
> 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 > top of Java-index,Java Essentials,Java Programming...
# 11
Yeah it is not clear, OP, if you mean to enforce or merely inform.
abillconsla at 2007-7-12 18:27:17 > top of Java-index,Java Essentials,Java Programming...
# 12
>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 :).
jellystonesa at 2007-7-12 18:27:17 > top of Java-index,Java Essentials,Java Programming...
# 13
> Yeah it is not clear, OP, if you mean to enforce or> merely inform.Just to inform.
jellystonesa at 2007-7-12 18:27:17 > top of Java-index,Java Essentials,Java Programming...
# 14

> > 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 > top of Java-index,Java Essentials,Java Programming...
# 15
Get an IDE with code collapse.
TuringPesta at 2007-7-21 22:08:10 > top of Java-index,Java Essentials,Java Programming...
# 16
> It's generated from source code.and horribly verbose paragraphs of ugly html codethat pollute all your java goodness.
TuringPesta at 2007-7-21 22:08:10 > top of Java-index,Java Essentials,Java Programming...
# 17
> > Yeah it is not clear, OP, if you mean to enforce> or> > merely inform.> > Just to inform.Then yes, you want JavaDoc
abillconsla at 2007-7-21 22:08:10 > top of Java-index,Java Essentials,Java Programming...