Skip to content

A code editor runs on Windows and Mac. The app allows users to write and edit Java files. Built-in syntax highlighting, error checking, native compiler, and class loaders.

Notifications You must be signed in to change notification settings

KietDinh/Java-Code-Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Java Code Editor - Final Version is on Master Branch

PLEASE USE LATEST JDK BEFORE EXECUTING THE PROGRAM TO AVOID ISSUE

KeyWord Count

  • 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{}

Compiling

  • 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.

About

A code editor runs on Windows and Mac. The app allows users to write and edit Java files. Built-in syntax highlighting, error checking, native compiler, and class loaders.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages