package methodexample;
public class MethodExample
{
public static void main(String args[])
{
int y = 2, z = 0;
z = twoTimes(2);
System.out.print("\n\n\t" + (y + z));
}
public static int twoTimes(int y)
{
y = 2 * y;
return y;
}
}

While pursuing a Computer Science degree, I founded DaniWeb.com, an online community for developers and IT professionals. I coded the backend platform from the ground up and I also do all of the advertising sales and SEO. I'm a super-geeky programmer with a passion for Internet marketing.

2
Contributors
1
Reply
3
Views
12 Years
Discussion Span
Last Post by p.bondam
0

hi Queen,

this is really a very intriguing example...

what were you thinking at the time=

by the way...when in this comment/area, my keyboard is acting strange, showing equal/signs instead of question-marks, and slashes instead of minus/signs...and so on.
in my browser or java shell all is still ok.

any idea =;

greetings from

peter bondam

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.