강의

멘토링

커뮤니티

Inflearn Community Q&A

pompomyena's profile image
pompomyena

asked

Do it! Introduction to Java Programming with Eun Jong

Utilizing polymorphism and downcasting (4)

13:28 for 문 안에 : 은 뭔가요

Written on

·

326

0

for(Customer customer : customerList){

여기서 : 은 왜 쓰인건가요 ? 

 

java

Answer 1

0

...

향상된 for문에서 for(변수:객체){코드문}을 쓰려고 가운데에 :를 붙였을거에요...

for(생성된 클래스 customer 변수 : 위에 ArrayList의 객체인 cutmerList)까지요 ..

pompomyena's profile image
pompomyena

asked

Ask a question