Move one static modifier

  • 2
  • Locked
Not everyone can be static! And if a static modifier ends up where it shouldn't be, anything could happen! This is exactly what happened in the code you'll see once you open this task: one static modifier ended up in the wrong place. Help the program compile by putting the modifier where it belongs! Thanks.
You can't complete this task, because you're not signed in.
Comments (6)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
carlos oliveira
Level 10 , Seattle, United States
11 November 2021, 23:46
Nope. The class has alredy (4) static modifers. the key is "how to make them available to eachother?" see "static modifiers and instance variables scope access". final SPECIAL hint* "getnostaticastatic".hahahahah
Khongpak Phupkdee
Level 15 , Chiangrai, Thailand
24 April 2021, 04:09
Sometimes the practice is to look easy but it not! This practice has 3 static modifiers you will change some variable to static and change some variable to nonstatic you will pass the last mission ("The class must have 4 static modifiers (variables and methods).")
Vrh Backend Developer
30 June 2019, 09:29
Just as I thought I understand this topic, this happens... I solved it but I can't really say I fully understand it.
Ivan
Level 22 , Nope, Bulgaria
15 October 2019, 13:56
Static methods cannot use non-static variables. Non-static variables can use static variables. Hope this helps :)
Fairoz Logde
Level 14 , Mumbai, India
24 December 2018, 17:24
What to do here??
Roman
Level 41
25 December 2018, 07:10
Move one static modifier to make the example compile.