1.13. JavaΒΆ

Activecode now supports Java, C++ and C through a backend server, not in the browser. You can use them by specifying the language to be java, cpp or c In addition it supports either Python3 or Python2 outside of the browser using python3 or python2 as the language. You are limited to non-graphical programs in any of these options.

1.14. Unit Tests in JavaΒΆ

You can also have hidden unit tests in Java using JUnit tests. Place the unit tests after β€˜====’.

Here is a for loop that counts from 1 to 5. Can you change it to count from 2 to 10?

Before you keep reading...

Making great stuff takes time and $$. If you appreciate the book you are reading now and want to keep quality materials free for other students please consider a donation to Runestone Academy. We ask that you consider a $10 donation, but if you can give more thats great, if $10 is too much for your budget we would be happy with whatever you can afford as a show of support.

In this project, you will create a class that can tell riddles like the following:

Riddle Question: Why did the chicken cross the playground? Riddle Answer: To get to the other slide!

You have attempted 1 of 5 activities on this page