Coursera Programming Assignments
Kotlin for Java Developers
Kotlin for Java Developers is a Coursera course by Svetlana Isakova and Andrey Breslav.
This course is for you if you're an experienced developer who knows Java and wants to learn nuances of Kotlin and its differences from Java. After completing the course, you'll be able to use Kotlin for your own project development and in your daily work. Note that this course doesn't cover the programming fundamentals, it only highlights what is new and different.
The course includes programming assignments for learners. You should solve all the assignments using JetBrains Educational Products.
Prerequisites
-
To solve the programming assignments, use IntelliJ IDEA or Android Studio with EduTools plugin installed. Please make sure your IDE build has a version 181.* or above, and EduTools plugin's version is 2.0 or above.
Download IntelliJ IDEA Community with EduTools and Kotlin plugins , or Install EduTools Plugin if you have already installed IntelliJ IDEA Community or Ultimate.
Choosing an assignment
-
When installed for the first time, the IDE asks if you're a Learner or an Educator. Please choose Learner:
-
To open the list of available programming assignments, select
from the or the : -
Choose the course week you need to solve assignments for and click the
button to proceed:
Getting started
-
Now you're ready to start programming. Take a closer look at the week assignments. Go to Nice String and Taxi Park. Each of the assignments has all the files needed to solve it as well as tests that can help to check your solution before submitting:
or press Alt+1. The third week has two assignments: -
Let's start with the first assignment of the week, Nice String. Read the assignment's description on the panel ( ):
-
In the Editor you will find a TODO() placeholder where you need to place your code:
Testing your solution
-
Once you're ready with your solution, you can test it using build-in tests. Open the TestNiceStrings.kt file in the and run all the tests with or Ctrl+Shift+F10 shortcut:
-
If any of the tests fail, preview the error messages, make the required fixes, and ensure all the tests are green:
Submitting to Coursera
-
When all the tests have been successfully passed, it's time to submit your assignment to Coursera. Use the
button at the bottom of the panel: -
Enter your Coursera credentials. Follow the link in the dialog to obtain your token:
You will be redirected to Coursera where you can get your current token or generate a new one:
-
Get back to the IDE and fill in the Email and Token fields:
-
Congratulations! Your submission was sent to Coursera:
-
Please use the check the status on Coursera link to make sure your submission has been graded:
-
Please note, you can always use the
icon to restart your assignment:You can also leave your feedback using the
icon: -
Now, you can switch to the next programming assignment. Click the
icon at the top of the panel: