Home > Back-end >  The type of illegal
The type of illegal

Time:03-24

Himself in and out of the river lake small white, want to ask next bosses on {} braces when writing code specific use in what place, where every time very vague don't know what to add, and I can't find this code base of the problem, please advice thanks
The original
The class bb
{
Public static void main (String [] args);
Int a=0;
For (int I=1; I & lt;=100; A + I + +) {=I;
System. The out. Println (I + "" + a); If (a & gt;=100) {break; }
}
System. The out. Println (" result "+ a);

}
Error
Qq. Java: 5: error: illegal type start for (int I=1; I & lt;=100; I + +) {^
Qq. Java: 5: error: need & lt; Identifier & gt; For (int I=1; I & lt;=100; I + +) {^
Qq. Java: 5: error: need & lt; Identifier & gt; For (int I=1; I & lt;=100; I + +) {^
Qq. Java: 12: error: need & lt; Identifier & gt; System. The out. Println (" result "+ a); ^
Qq. Java: 12: error: the type of illegal start System. Out. The println (" result "+ a); ^
Five errors
  • Related