Tuesday, December 30, 2014

Java Tutorial For Beginners 17 - Parameter passing and Returning a Value...

6:02 AM













1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package lesson1;
public class MyClass {

public static void main(String[] args) {

int sum = Add(100,201,211);
int result =sum * 15;
System.out.println(result);
}

public static void sayHello(String name) {
System.out.println("Hello " + name);
}

public static int Add (int a,int b,int c)
{
//System.out.println(a+ b +c);
return (a +b+c);
}

}














java method arguments ellipsis

java method arguments vs parameters

java method arguments pass by reference

java method arguments list

java method arguments final

java method argument annotation

java method argument array

java method argument three dots

Written by

We are one of the initiators of the development of information technology in understanding the need for a solution that is familiar and close to us.

0 comments:

Post a Comment

 

© 2013 Klick Dev. All rights resevered.

Back To Top