import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner (System.in); System.out.println("Value of X = "); double x = scanner.nextDouble(); System.out.println("Value of Y = "); int y = scanner.nextInt(); System.out.println("The answer is " + adder(x,y)); System.out.println("The answer is " + adder(y,x)); } public static double adder (int y, double x) { double adder = x + y; return adder; } public static double adder (double x, int y) { if (x >= 0) { x = x * -1 ; } if (y >= 0) { y = y * -1 ; } double adder = x + y; return adder; } }