I want to add a number if user enters add 5 , i want to initialize the variable if user enters set 5. how can I do it in java? :     enter code here
      import java.io.*;
      import java.math.*;
      import java.text.*;
      import java.util.*;
      import java.util.regex.*;

       public class Solution {

        /*
     * Complete the maximumProgramValue function below.
     */
     static long maximumProgramValue(int n) {
        /*
         * Write your code here.
         */

    }

    private static final Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) throws IOException {
        BufferedWriter bufferedWriter = new BufferedWriter(new 
                                FileWriter(System.getenv("OUTPUT_PATH")));

        int n = scanner.nextInt();
        scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])*");

        long result = maximumProgramValue(n);

        bufferedWriter.write(String.valueOf(result));
        bufferedWriter.newLine();

        bufferedWriter.close();

        scanner.close();
       }
    }



help me for solving it, that how can i use it to get answer,  i have been stuck here from long please help soon thanks
help me for solving it, that how can i use it to get answer,  i have been stuck here from long please help soon thanks
help me for solving it, that how can i use it to get answer,  i have been stuck here from long please help soon thanks**help me for solving it, that how can i use it to get answer,  i have been stuck here from long please help soon thanks
help me for solving it, that how can i use it to get answer,  i have been stuck here from long please help soon thanks
help me for solving it, that how can i use it to get answer,  i have been stuck here from long please help soon thanks
help me for solving it, that how can i use it to get answer,  i have been stuck here from long please help soon thanks
**