And don't forget that returning a value from a void method will result in a compiler error in Java (unlike C).
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
my program was just continual , like as th program was run , the program would just be read line after line. Now that im written bigger programs i need to know how to seperate my methods or functions etc.
Functions (or methods as they're called in Java) alone make no difference between OO(object-oriented) and procedural (your "continual") languages.
Focus is just saying which component can recieve user events. When typing keys in your web browser, they won't do anything unless the address bar has focus. By having the current focus, it can accept those keystrokes and then display them in the text field(address bar).
I'm just trying to help you understand what you're programming.
Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51