your calling the method with wrong number of parameters - it expects 2
params - an int and a double - in the implementation of the method you
define it as follows:
 public static void test(int j, long m)
but when you call it - invoke it - you gave it only 1 params:
test(i) and then test(k) - this is wrong you need to pass to the test method
2 params in each call :
test(i,k) --> you need to follow the number of params at each call and given
in the method definition.

On Sat, Aug 15, 2009 at 10:21 AM, Utsav <[email protected]> wrote:

>
> As the Ashok said it is correct. but u can also pass the both value by
> calling only one method.
>
> you can replace the code: test(i);
>                          test(k); by:
>
> test(i, k) so that both of the value is send to the method:
>
>            public static void test(int j, long m)    // j takes the
> value of i and m takes the value of k  *
>
>
> Thank you,
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to