What type need to be specified for the function to work?

foo(... x){ return x + 1; } 

Closed due to the fact that the essence of the issue is incomprehensible by the participants tutankhamun , Anton Shchyrov , Denis , YurySPb , aleksandr barakin 21 Nov '16 at 9:06

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    Type int

     int foo(int x){ return x + 1; } 
    • I need a sample type - user228533
    • Comparable for addition only - user228533
    • java.lang.Object - Xoxole
    • @Xoxole thanks - user228533