public void submit2()
    {
        //Declaring variables
        int num = 0;
        int index = 0;
        boolean won = false;
        Team temp;
        Exception wl = new Exception();

        //Check if valid team number is entered
        try
        {
            //Pull number from label, throwing exception if invalid
            num = Integer.parseInt(team2Num.getText());
            if(!win2.isSelected() && !loss2.isSelected())
                throw wl;

            //Finds the team with the corresponding number
            if(Team.getTeamIndex(num) != -1)
            {
                temp = Team.teamList.get(Team.getTeamIndex(num));
                index = Team.getTeamIndex(num);
                updateStats2(temp, num);
            }
            else
                createNewTeam2(num);
        }
        catch(Exception invalid)
        {
            if(invalid == wl)
                JOptionPane.showMessageDialog(null, "Please select win or loss.");
            else
                JOptionPane.showMessageDialog(null, "Please enter a valid team number.");
        }
        
        //Save updated stats to file
        try 
        {
            Team.saveToFile();
        } catch (IOException ex) 
        {
                JOptionPane.showMessageDialog(null, "Error saving stats to file.");            
        }
    }//End of submit2 method