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.
Move one static modifier
- 2
Locked
Comments (6)
- Popular
- New
- Old
You must be signed in to leave a comment
carlos oliveira
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
0
Khongpak Phupkdee
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).")
0
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.
+3
Ivan
15 October 2019, 13:56
Static methods cannot use non-static variables.
Non-static variables can use static variables.
Hope this helps :)
+3
Fairoz Logde
24 December 2018, 17:24
What to do here??
0
Roman
25 December 2018, 07:10
Move one static modifier to make the example compile.
0