반응형

@notepad_jj2

츄르사려고 코딩하는 코집사입니다.


자바(Java) the method sort(int ) in the type arrays is not applicable for the arguments 해결 방법

 

우리가 알고리즘을 풀다 보면, 배열이나 List 등을 내림차순이나 오름차순으로 정렬해야 하는 경우가 생기곤 한다. 그럴 경우에 자주 볼 수 있는 에러는 

the method sort(int ) in the type arrays is not applicable for the arguments

 

 

 

이 문제는 기본 타입을 Wrapper Class로 바꿔서 사용하면 된다.

기본타입 / Wrapper Class

byte Byte
short Short
int Integer
long Long
float Float
double Double
char Character
boolean Boolean
반응형
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기