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
-~----------~----~----~----~------~----~------~--~---