Your first method · 첫 번째 메서드
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
English
Your first method
Now write a method. Don't write main — the checker calls your method with several inputs and checks what you return. Complete twice so it returns n times two.
한국어
첫 번째 메서드
이제 메서드를 작성하세요. main을 쓰지 마세요——체크러가 여러 입력으로 당신의 메서드를 호출하고 당신이 return하는 것을 확인합니다. twice를 완성하여 n의 두 배를 반환하도록 하세요.
Complete twice(int n) so it returns n times two. Don't write main. · twice(int n)를 완성하여 n의 두 배를 반환하도록 하십시오. main는 작성하지 마십시오.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.