2012-03-31, 10:08 PM
Marksman Bryan Wrote:I may be completely wrong because it is C#, but in java, you'd have to pass x and y in as parameters.
Code://in main, below taking inputs
Console.WriteLine(add(x,y));
//add method
public static int add(int num1, int num2){
return num1+num2;
}
Alright, I'll look that up and give it a try. Thank you for the response.

