I have created an interface on kotlin.
interface IDataManager{
val dataType: String?
}
Now I am trying to get its variable in my java class, like following.
public static DataWrapper getInstance(IDataManager iDataManager) {
dataType= iDataManager.dataType;
return instance;
}
But I am getting error: cannot find symbol iDataManager.dataType