HackerRank problemassistance #7
-
|
showing this error
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
->In static block all datamembers are by default static |
Beta Was this translation helpful? Give feedback.
->In static block all datamembers are by default static
->also those variables are required in main function therefore they must be declared outside the block
->static Scanner in = new Scanner(System.in); (FORGOT THIS) (-__-)