Method and function both are same. We call functions as methods in OOPS. no
difference da
Anbu,
package javaapplication2;
public class Main {
public static void main(String[] args)
{
for(int i=0;i
System.out.println("ARGS VALUE["+ i + "]" + args[i]);
}
}
}
What U have tried is command line arguments and the arguments 1 2 3 are command line arguments. What U have done was correct da. U run the program to get the output.
Deepikkaa.