According to everything I read about overloading, this should work, but the validation claims that the transformValue method is not doubling the number when it is, and that the main method should only call transformValue once, which it does.
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 transformValue2(int i) {
return i * i;
}
public static int transformValue(int i) {
return i + i;
}
}