functions

hello how do i declare a function? i have a function that i want called from within a class.

all in the same .java file

i am new to java as you can probably tell.
thanks, ed.

Comments

  • : hello how do i declare a function? i have a function that i want called from within a class.
    :
    : all in the same .java file
    :
    : i am new to java as you can probably tell.
    : thanks, ed.
    :
    Java functions have a similar syntax to C. Remember that all code must be placed inside class definitions. For more info see java.sun.com.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion