# 다중 파라미터 메소드 #### CODE <a class='btn btn-default' href='/codes/61877'>Link</a> ``` public class CylinderVolume { // 프로그램 실행의 시작점! public static void main(String[] args) { // 변수 생성 double r = 7.0; double h = 5.0; // 부피 계산 double v = volume(r, h); // 결과 출력 System.out.printf("반지름이 %.1f, 높이가 %.1f인 원기둥의 부피: %.1f", r, h, v); } // 반지름과 높이를 입력받아 원기둥의 부피를 반환 public static double volume(double raidus, double height) { return Math.PI * radius * radius * height; } } ``` #### INPUT ``` ``` #### OUPUT ``` /root/var/tmp/2022_03_29_00_25_56_dde4e0ea/CylinderVolume.java:17: error: cannot find symbol return Math.PI * radius * radius * height; ^ symbol: variable radius location: class CylinderVolume /root/var/tmp/2022_03_29_00_25_56_dde4e0ea/CylinderVolume.java:17: error: cannot find symbol return Math.PI * radius * radius * height; ^ symbol: variable radius location: class CylinderVolume 2 errors ```
## 에러 속에 답이 있습니다. 에러를 보면 심볼을 찾을 수 없다고 나오는데요 ``` /root/var/tmp/2022_03_29_00_25_56_dde4e0ea/CylinderVolume.java:17: error: cannot find symbol return Math.PI * radius * radius * height; ^ symbol: variable radius location: class CylinderVolume /root/var/tmp/2022_03_29_00_25_56_dde4e0ea/CylinderVolume.java:17: error: cannot find symbol return Math.PI * radius * radius * height; ^ symbol: variable radius location: class CylinderVolume 2 errors ``` 반지름을 의미하는 파라미터 변수에 오타가 있습니다. ``` raidus(X) => radius(O) ``` 질문 감사합니다👍