Home > Back-end >  OuAdd. Java: 9: error: can't find the symbol System. Out. The println (" the result is: &q
OuAdd. Java: 9: error: can't find the symbol System. Out. The println (" the result is: &q

Time:10-01


Public class ouAdd {
Public static void main (String [] args) {
Int sum=0;
For (int I=1; I & lt;=100; I++) {
If (I % 2==0) {
The sum +=I;
}
}
Even within System. Out. Println (" one hundred and for "+ sum);
}
}

CodePudding user response:

Look on the notepad + +, what is the format of the file

CodePudding user response:

reference 1st floor usecf response:
look at on the notepad + +, what is the format of the file

Format is the

CodePudding user response:

See if you use notepad + + coding format

CodePudding user response:

reference usecf reply: 3/f
look at the coding format you use notepad + +

CodePudding user response:

Try to utf-8

CodePudding user response:

reference 5 floor usecf reply:
try to utf-8

Contain the bom?

CodePudding user response:

You should try the two can be
  • Related