/forEach

    0

    0

    tushuangxi

    This code is trying to iterate over the entire list (1..page). However, it can't because an exception could be thrown. So, the code prints out "try { } catch (e: Exception) {".

    //list遍历1-page
    (1..page).forEach {
        try {
        
        } catch (e: Exception) {
    
        }
      }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.