0

Can i use my created method first and then write the main method?

Can i declare my created method first and then write the main method??? or does it have to be like the examples, where i create the main first then my methods.... It seems easier if all the methods were at the top where you can find them easy when figuering out your main.

18th Sep 2016, 8:05 AM
Jose Acosta
Jose Acosta - avatar
3 Réponses
+ 5
of course u can create ur methods first and if u want u can call them in the main method created later
18th Sep 2016, 8:13 AM
Andy
Andy - avatar
0
yes why not because Java support oop and oop u can write code before or after main()
18th Sep 2016, 9:00 AM
jineha
0
yes.
18th Sep 2016, 11:28 AM
Nick Silicon
Nick Silicon - avatar