Help with java Please
import java.util.*;
public class Recursion{
public static void main(String args[]){
Scanner input = new Scanner(System.in);
String exp = input.nextLine();
System.out.println(solver(exp.split(" ")));
}
public static double solver(String[] expression){
double result = 0;
if(expression.length == 3){result = add(Double.parseDouble(expression[0]),Double.parseDouble(expression[2]));}
else if(expression.length == 5){result = add(Double.parseDouble(expression[0]),Double.parseDouble(expression[2]),Double.parseDouble(expression[4]));}
else if(expression.length == 7){result = add(Double.parseDouble(expression[0]),Double.parseDouble(expression[2]),Double.parseDouble(expression[4]),Double.parseDouble(expression[6]));}
else if(expression.length == 9){result = add(Double.parseDouble(expression[0]),Double.parseDouble(expression[2]),Double.parseDouble(expression[4]),Double.parseDouble(expression[6]),Double.parseDouble(expression[8]));}
else if(expression.length == 11){result = add(Double.parseDouble(expression[0]),Double.parseDouble(expression[2]),Double.parseDouble(expression[4]),Double.parseDouble(expression[6]),Double.parseDouble(expression[8]),Double.parseDouble(expression[10]));}
return result;
}
public static double add (double a, double b){return a+b;}
public static double add(double a, double b, double c){return a+b+c;}
public static double add(double a, double b, double c, double d){return a+b+c+d;}
public static double add(double a, double b, double c, double d, double e){return a+b+c+d+e;}
public static double add(double a, double b, double c, double d, double e, double f){return a+b+c+d+e+f;}
}