public static void insertIplBatting(IplBatting ib){
         try{
              
            Player itp = new Player();
            IplBatting teamPlayer = new IplBatting();
            PreparedStatement getPlayerID = con.prepareStatement("SELECT id FROM player ORDER BY id DESC LIMIT 1");
                        
             ResultSet rs = getPlayerID.executeQuery();
             while (rs.next()) {
                
//                 itp.setPlyerID((rs.getString("ID")));
                 
                 
                 itp.setId(rs.getString("ID"));
//                   itp.setID((rs.getString("ID")));
            
           
             }
            PreparedStatement insertIplBatting = con.prepareStatement("INSERT INTO iplteam_player_battingstatistics (PlayerID,TeamID,Average, StrikeRate) Values(?,?,?,?)");
          
            insertIplBatting.setString(1,itp.getId());
            insertIplBatting.setString(2,itp.getId());
            insertIplBatting.setString(3,ib.getAverage());
            insertIplBatting.setString(4,ib.getStrRate());
            
            insertIplBatting.executeUpdate();
         }
         catch(Exception e ){
             
             throw new RuntimeException(e.getMessage());
         }
         
         
         
         }