my code is like
public class StationService
{
private StationDao stationDao;
public StationService(StationDao stationDao) {
this.stationDao = stationDao;
}
public void insertData(PoliceStationBeans beans) {
// TODO Auto-generated method stub
System.out.println("In Implementation:"+beans.getArea()+""+beans.getUserName()
+""+beans.getPassword()+""+beans.getEmail());
stationDao.insertData(beans); //Getting Error Here
}
}
How to resolve this error I reffered this question Can i call a method which is inside an interface without implementing the interface?