Question #224071

Write a program to show the use of static functions and to pass variable length

arguments in a function.


Expert's answer

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));
    }
}
LATEST TUTORIALS
APPROVED BY CLIENTS