Hello Fellow Codegym,
I am not sure why my code is not passing the conditions. I must be overlooking something.
The overloaded transformValue method must double the number passed to it. - line 19 is overloaded, doubles the number by adding itself
The main method should only call the transformValue method once. - i only call it once in the main method. I'm perplexed.
I would appreciate the help. I feel a facepalm pretty soon!
Thanks.
Eddie
package com.codegym.task.task12.task1230;
/*
Making the top ten
*/
public class Solution {
public static void main(String[] args) {
Integer i = 5;
int x = transformValue(i);
System.out.println(x);
}
public static int transformValue(int i) {
return transformValue (i, i);
}
public static int transformValue(int i, int j) {
return i + j;
}
}