Created
          May 16, 2020 08:57 
        
      - 
      
- 
        Save Lanse505/5559ea3c26f6cefed629dc6b2bb2dcf0 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public static void nhlTeamName(int lagId) throws ParseException { | |
| nhlData = jsonGetRequest("https://statsapi.web.nhl.com/api/v1/teams/"+lagId); | |
| jsonObj = (JSONObject) jsonPar.parse(nhlData); | |
| teams = (JSONArray) jsonObj.get("teams"); | |
| for(int i = 0; i < teams.size(); i++){ | |
| team = (JSONObject) teams.get(i); | |
| teamName = team.get("name").toString(); | |
| System.out.println(teamName); | |
| System.out.println(""); | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment