Vicat Mauricio

Greenhorn
+ Follow
since Feb 21, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vicat Mauricio

Please don't kill me guys I am a total noob to Java as I come from an AS3.0 background.


I noticed that there are no "Functions" in Java, I guess the Java "main" method is the closest thing to a function. The reason I ask this is because when I create a class in Java I noticed that the main method requires a parameter for me to get the Sample program to execute or I get an error when I run the program if the parameter is missing. Here is the following code:




why do I need to have the "String args[]" parameter in the main method in order to output the text if there is no reference to it inside the "main". "String args[]" looks as if I am creating a String variable with a some sort of array link? can someone explain why I need this parameter in the main method in order for the program to execute correctly?
13 years ago