Java Generics not working

后端 未结 5 644
孤独总比滥情好
孤独总比滥情好 2021-01-29 15:45

Why Generics not working in my machine. Why below code not working in Eclipse without Type casting to the String. I am using Java 1.6

package com.wi         


        
5条回答
  •  感情败类
    2021-01-29 16:09

    In eclipse, go to Window > Preferences > Java > Compiler and look up JDK compliance. Make sure it's at least 1.5.

提交回复
热议问题