Skip to main content

When trying to execute, it shows the following error:

 

Line: 17, Column: 27

static can only be used on methods of a top level type

 

#Trailhead Challenges

4 réponses
  1. Forum Ambassador Eric Burté (DEVOTEAM)
    2 mai 2024, 21:00

    Hello @Rafael Moskorz that seems that you have declared static a method of an inner class (a class within another class). Please either remove the static aspect if relevant, or try to integrate the inner class part / the static method (if relevant) within the top level class. 

    Eric

0/9000