Static modifiers: part 1

  • 4
  • Locked
In a static block, initialize labels with 5 different key-value pairs. The Solution class should have only one method (main), where you must also declare a static Map field labels. This field must be populated with 5 different key-value pairs in a static block.
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Mary Khan
Level 23 , Russia, Russian Federation
5 August 2022, 23:26
Why is this static block in this case?