I don't understand. Where you show it, it should not show this error, and it is quite useless, being static (done once).
Try moving the line defining number between the two println().
Try moving the line defining number between the two println().