Report as inappropriate.
Write some code and run it.
Implemented so far:
* All ops expected in Java with precedence, except for: unary +, and ternary
* Types: int, char, double, boolean, String, array
* Cast to int and char
* while, do-while, normal for loops, and switches
* if, else if, else
* return
* break and continue (with tags)
* Syntax checking messages (a little weak)
* Global variables, methods
Nest if's and loops with/out '{}' as much as you like.
Strings currently have default value of "" instead of null.
Built-in methods:
* void print(String) // Prints the given String to the display console.
* double rand() // Returns a random double in range [0,1).
The program looks for a method called main with no params, to run.
Use the terminate button if your code execution is taking a long time or is in an infinite loop.
You can use ctrl+t to insert 4 spaces like a tab.
Lots to do...
For reusable GUI Components, visit:
http://www.greenfoot.org/scenarios/7578
There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)
This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.
Want to leave a comment? You must first log in.
2014/5/9
2014/5/10
2014/6/9
2014/6/14