A programmer needs to create a logging method that can accept an arbitrary number of arguments. For example, it may be called in these ways: <br /> logIt(”log message 1 “); <br /> logIt(”log message2”,”log message3”); <br /> logIt(”log message4”, “log message5”, “log message6); <br /> Which declaration satisfies this requirement?()<p> A programmer needs to create a logging method that can accept an arbitrary number of arguments. For example, it may be called in these ways: <br /> logIt(”log message 1 “); <br /> logIt(”log message2”,”log&e
A、A. public void logIt(String * msgs)
B、B. public void logIt(String [] msgs)
C、C. public void logIt(String... msgs)
D、D. public void logIt(String msg1, String msg2, String msg3)