A programmer needs to create a logging method that can accept an arbitrary number of arguments.Forexample,it may be called in these ways: logIt("log message 1"); logIt("log message 2”,”log message 3"); logIt("log message 4","log message 5","log message 6"); Which declaration satisfies this requirement()?
A. public void logIt(String*msgs)
B. public void logIt(String[]msgs)
C. public void logIt(String...msgs)
D. public voidl ogIt(Stringmsg1,Stringmsg2,Stringmsg3)
查看答案
该试题由用户876****57提供
查看答案人数:45926
如遇到问题请
联系客服
正确答案
该试题由用户876****57提供
查看答案人数:45927
如遇到问题请联系客服