Tuesday, October 28, 2008

Hi da

HI priya,

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.



Friday, October 3, 2008

Method and Function

what's a method?
what's a function?
what's the difference between a method and a function?