로깅 정보를 제공하는 기록인 로그(log) 를 생성하도록 시스템을 작성하는 활동소프트웨어 개발자는 코드에 로깅호출을 추가하여 특정 이벤트가 발생했음을 나타낸다. # 로깅 라이브러리 사용 예시 https://blog.naver.com/obndo8539/222973097887 print 출력문을 사용하지않고 데이터를 출력할 ..." data-og-host="blog.naver.com" data-og-source-url="https://blog.naver.com/obndo8539/222973097887" data-og-url="https://blog.naver.com/obndo8539/222973097887" data-og-image="https://scrap.kakaocdn.net/dn/s0mmy/hySo..
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fc7xNTq%2FbtsbjhLwyKk%2FK00MvnsmOizqk0EGJd6vNK%2Fimg.png)
class Solution { public int[] solution(int money) { int[] answer = new int[2]; int icedCoffee = 5500; answer[0] = money/icedCoffee; answer[1] = money%icedCoffee; return answer; } }
![article thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FouVwc%2Fbtsbk2tIPrG%2FV4qCasOsOFfRIJo5nx6Ck0%2Fimg.png)
피자 조각이 7개 ! 사람이 7 명일 때는 1판 필요하고, 14판일 때는 2판 ... 8 명일 때는 2판이 필요하다. n이 7의 배수일 때는 n / 7 , 아닐 때는 ( n / 7 ) + 1 이 된다. 나머지 연산자를 이용 class Solution { public int solution(int n) { int answer = 0; if ( n % 7 == 0 ) { answer = n / 7 ; }else { answer = ( n / 7 ) + 1; } return answer; } }