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 respuestas
  1. Eric Burté (DEVOTEAM) Forum Ambassador
    2 may 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