mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 16:24:03 -05:00
Adds D8Compiler, which applies to the Android Java and Android Kotlin languages. D8Compiler instantiates a JavaCompiler or KotlinCompiler using the java/kotlin dependencies' paths for D8 in the infra repo. compiler-finder.ts has been updated to allow for duplicate compiler IDs for 'android-java' and 'android-kotlin', as it is expected that the compilers used for these languages is the same.
8 lines
127 B
Java
8 lines
127 B
Java
// Type your code here, or load an example.
|
|
class Square {
|
|
static int square(int num) {
|
|
return num * num;
|
|
}
|
|
}
|
|
|