3 ms·
it does not work on my first test: My program is i=1 and the Java program it produces is: class Program { public static void main(String[] args) throws Ex
by lozzo 9y ago
it does not work on my first test:
My program is i=1
and the Java program it produces is:
class Program {
public static void main(String[] args) throws Exception {
i = 1;
}
}
which is wrong because "i" must be defined in java
as in "int i;"
- yorwba 9y agoTry writing "let i = 1". I think the assumption is that if you use undeclared identifiers, you'll provide them to the generated code in some other way.