Home > Back-end >  The JAVA compiler error: could not initialize variables
The JAVA compiler error: could not initialize variables

Time:10-15

This code defines season you don't have to give the initial value, why is there a compiler error

CodePudding user response:

The
refer to the original poster m0_46370246 response:
this code defines season you don't have to give the initial value, why there will be a compiler error

Write the wrong title is has yet to initialize variables

CodePudding user response:

The
refer to the original poster m0_46370246 response:
this code defines season you don't have to give the initial value, why there will be a compiler error

I later see
That is to say if the input 1 and 12 outside, no output to run too, is more or less have to responsible for the number 1 and 12 outside of the meaning of the results,
So I understand, I give season assignment 'no', you can run a success

CodePudding user response:

refer to the second floor m0_46370246 response:
Quote: refer to the original poster m0_46370246 response:
this code defines season you don't have to give the initial value, why there will be a compiler error

I later see
That is to say if the input 1 and 12 outside, no output to run too, is more or less have to responsible for the number 1 and 12 outside of the meaning of the results,
So I understand, I give season assignment 'no', you can run a success

Is the number 1-12

CodePudding user response:

Your season variable assignment statement, the condition of the switch that is likely to all the conditions are not satisfied, so when using tip you may not define in the rear

CodePudding user response:

reference 4 floor similing response:
you season variable assignment statement in the switch condition, that is to say, may all the conditions are not met, so you may not define behind tips when using

Right, then see
  • Related