#밥값이 얼마더라? ## CODE <a class='btn btn-default' href='/codes/9624'>Link</a> ``` public class Receipt{ public static void main(String[]args){ int donPrice = 8000; int kalPrice = 6000; int wanPrice = 5000; int donNum = Integer.parseInt(args[0]); int kalNum = Integer.parseInt(args[1]); int wanNum = Integer.parseInt(args[2]); int donTotal = donPrice * donNum; int kalTotal = kalPrice * kalNum; int wanTotal = wanPrice * wanNum; int sum = donTotal + kalTotal + wanTotal; System.out.printf("돈가스 x %d = %d%n", donNum, donTotal); System.out.printf("칼국수 x %d = %d%n", kalNum, kalTotal); System.out.printf("왕만두 x %d = %d%n", wanNum, wanTotal); System.out.println(================); System.out.printf("총합: %d%n", sum); } } ``` ## INPUT ``` 16 8 1 ``` ## OUPUT ``` /root/var/tmp/2019_09_14_09_18_06_d5eb6b8b/Receipt.java:21: error: illegal start of expression System.out.println(================); ^ /root/var/tmp/2019_09_14_09_18_06_d5eb6b8b/Receipt.java:21: error: illegal start of expression System.out.println(================); ^ /root/var/tmp/2019_09_14_09_18_06_d5eb6b8b/Receipt.java:21: error: illegal start of expression System.out.println(================); ^ /root/var/tmp/2019_09_14_09_18_06_d5eb6b8b/Receipt.java:21: error: illegal start of expression System.out.println(================); ^ /root/var/tmp/2019_09_14_09_18_06_d5eb6b8b/Receipt.java:21: error: illegal start of expression System.out.println(================); ^ /root/var/tmp/2019_09_14_09_18_06_d5eb6b8b/Receipt.java:21: error: illegal start of expression System.out.println(================); ^ /root/var/tmp/2019_09_14_09_18_06_d5eb6b8b/Receipt.java:21: error: illegal start of expression System.out.println(================); ^ /root/var/tmp/2019_09_14_09_18_06_d5eb6b8b/Receipt.java:21: error: illegal start of expression System.out.println(================); ^ /root/var/tmp/2019_09_14_09_18_06_d5eb6b8b/Receipt.java:21: error: illegal start of expression System.out.println(================); ^ 9 errors ```
# 문자열을 쌍따옴표(`"`)로 감싸보세요 ``` # 에러코드 System.out.println(================); # 수정 코드 System.out.println("================"); ```
그부분 말고는 오류가 없나요? 말씀해주신 부분 수정해도 같은 애러가 계속 뜨네요!
# 코드 살짝 수정해 드렸어용! 주석 부분을 참고해서, 천천히 확인해보세요! > https://cloudstudying.kr/codes/9624 감사합니다.