public static void insertYearOfStat(IplTeamPlayer teamPlayer){
         try{
              IplTeamPlayer itp = new IplTeamPlayer();
            PreparedStatement getPlayerID = con.prepareStatement("SELECT id FROM player ORDER BY id DESC LIMIT 1");
            
            String i;
              ResultSet rs = getPlayerID.executeQuery();
             while (rs.next()) {
                
                 itp.setPlyerID((rs.getString("ID")));
            
           
                }
              PreparedStatement insertIplTeamPlayer = con.prepareStatement("INSERT INTO iplteam_player (PlayerID,IPLTeamID,Year) Values(?,?,?)");
          
            insertIplTeamPlayer.setString(1,itp.getPlyerID());
            insertIplTeamPlayer.setString(2,itp.getPlyerID());
            insertIplTeamPlayer.setString(3,teamPlayer.getYear());
            
            insertIplTeamPlayer.executeUpdate();
         }
         catch(Exception e ){
             
             throw new RuntimeException(e.getMessage());
            }
         }