The method printf(String, Object[]) in the type PrintStream is not applicable ..

  • jeeg
    (강철지그)
  • jeeg's Avatar 이 글의 작성자
  • Offline
  • Junior
  • Junior
더보기
16 Jan 2017 13:08 - 16 Jan 2017 13:19 #1801 작성자: jeeg
jeeg 님의 글: The method printf(String, Object[]) in the type PrintStream is not applicable ..
자바 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 링크 : stackoverflow.com/questions/23714411/the...ntf-method-wont-work
Time to create page: 0.055 seconds
Powered by Kunena Forum