private static void printIterable(Iterable iterable) {
// ERROR: "Type mismatch: cannot convert from element type Object to Iterable"
for (Iterable i : iterable) {
System.out.println(i);
}
}
컴파일러는 무엇을 말하고 있습니까? 그것의 반복 할 수있는 개체가 아닙니다.이 인쇄 가능한 방법에있어 문제점은 무엇입니까?
새로운 코드에서 원시 타입을 사용하지 마십시오 (당신이 원하는 객체와 문자열 바꾸기)입니다 : http://stackoverflow.com/questions/2770321/what-is -a-raw-type-and-why-shouldnt-we-use-it – polygenelubricants