-
Keyword count uses the Java Abstract Syntax Tree, thus the keyword count is updated only when there are no compile errors.
-
Examples of valid keywords
for(int i = 0; i < 10; i++) {
}
for(;;)
doSomething();
for( Object obj : arr ){
}
do{
}while(true);
while(true){}
if(true){}
// this will count as 2 keywords
if(true)
i = 0;
else
i = 1;
- Examples of invalid keywords
String s = "if";
// while
- Based on the project description, the following code will count as 6 keywords, because there are 3 ifs and 3 elses.
if(...){}
else if(...){}
else if(...){}
else{}
- Compile All will compile all project files. Similar to visual studio, if a file is not part of a project it will not be able to compile.
- Compiling a file will auto-save that file. Compiling Main and compile all will auto-save the project.