The method printf(String, Object[]) in the type PrintStream is not applicable ..
조회 1,984 · 댓글 0
자바 1.5 이상에서 사용하던 코드가 오류가 나서 찾아본 사항입니다.
수정 전
System.out.printf(lineFormat, pairs.getKey(), pairs.getValue(), NEW_LINE_STR);
수정 후
System.out.printf(lineFormat, new Object[] { pairs.getKey(), pairs.getValue(), NEW_LINE_STR });
Stackoverflow 링크 : http://stackoverflow.com/questions/23714411/the-printf-method-wont-work
수정 전
System.out.printf(lineFormat, pairs.getKey(), pairs.getValue(), NEW_LINE_STR);
수정 후
System.out.printf(lineFormat, new Object[] { pairs.getKey(), pairs.getValue(), NEW_LINE_STR });
Stackoverflow 링크 : http://stackoverflow.com/questions/23714411/the-printf-method-wont-work
로그인 후 답글을 남길 수 있습니다.