java.util.Iterator but cannot import java.util.Iterator

前端 未结 2 2031
栀梦
栀梦 2021-01-22 00:31

Given this Code

import java.util.Iterator;

private static List someList = new ArrayList();

public static void main(Strin         


        
2条回答
  •  走了就别回头了
    2021-01-22 01:12

    check your import statement proper it may be possible that you have already import iterator that comes from another packages first organize your imports delete those imports and add

    import java.util.Iterator;
    

    hope it will works for you

提交回复
热议问题