I'm not sure what's wrong with my code. It's giving the error "Return type required" on line 12. What am I doing wrong? Your assistance is appreciated.
package com.codegym.task.task12.task1206;
/*
We're on overload!
*/
public class Solution {
public static void main(String[] args) {
}
public static print(int a){
int x = a;
return x;
}
public static print(String b){
String c = b;
return c;
}
}