source-academy / frontend

Frontend of Source Academy, an online experiential environment for computational thinking (React, Redux, Saga, Blueprint)
https://sourceacademy.org
Apache License 2.0
103 stars 168 forks source link

Integrate Java type checker and compiler into frontend #2925

Closed 1001mei closed 5 months ago

1001mei commented 5 months ago

Description

Type of change

How to test

Input a simple Java program (such as the following) into the code editor and click on the Run button:

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world");
    }
}

Make sure to choose Java as the language option.

Checklist

martin-henz commented 5 months ago

Great! Here is an example:

class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!"); 
    }
}
Screenshot 2024-04-10 at 6 51 28 PM
coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 8672645683

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/commons/utils/JavaHelper.ts 0 16 0.0%
<!-- Total: 0 16 0.0% -->
Files with Coverage Reduction New Missed Lines %
src/commons/utils/JavaHelper.ts 1 0.0%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 8671789841: -0.02%
Covered Lines: 5229
Relevant Lines: 13835

💛 - Coveralls