View Single Post
  #4 (permalink)  
Old 07-19-2007, 07:10 PM
cruxblack cruxblack is offline
Senior Member
 
Join Date: Jul 2007
Posts: 130
cruxblack will become famous soon enough
da main method is the method that kinda..err..lets just say govern da process of ur class, ur primary class that is. If its an application, it must have a main method, like this

Code:
class TextThree extends Canvas { public static void main(String[] args){ ....... } }
if its an applet, then u might not have to insert da main method, but rather da init method

btw, if a program managed to be compiled perfectly, it doesnt always means that it's gonna run right

i recommend reading bout java OOP logic from any of da links u can find, no matter how good a code was made, if da foundation are crumbling, da program wont have a safe path at all

hope this helps ZAX
Reply With Quote