Write a program to show the use of static functions and to pass variable length
arguments in a function.
ublic class Main{
private static int x=10;
public static int ValueAddition(int v){
return v + x;
}
public static void main (String[] args) {
System.out.println(ValueAddition(9));
}
}
Comments
Leave a comment