Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

jb6.13 varargs

Language: Layout:
+ ] Show input
Compilation time: 0.63 sec, absolute service time: 0,74 sec 
edit mode |  history  | discussion
Error(s), warning(s):
source_file.java:12: error: reference to sum is ambiguous
        System.out.println(sum(1,2,3,4,5));
                           ^
  both method sum(int...) in Rextester and method sum(int,int...) in Rextester match
1 error