![]() ![]() Highlight and delete lines 1-5 so that the top right part of the screen appears as mine does below. Let's pull the comment out and verify that the program still runs the same. The way that you define a comment in Kotlin is to surround your comment with /* and */. The text at the top of the editor beginning with "We declare." doesn't do anything except provide a note. One of the best ways to learn a programming language is to break down examples that you didn't write yourself. If you ever don't see your output appear in the lower section that I've labeled "Console", make sure the Console tab is selected instead of the "Problems view" or "Generated classifiers" tabs. This screenshot marks the sections of the screen. Notice that the "Console" Tab is selected. At the bottom, there is a tabbed panel "Console". To the right, there is a panel containing the code called the "Editor". On the lefthand side, there is a browseable list of programs. The web application at is divided into three sections. The program printed out the words "Hello, World!". The lower part of your screen should look like the following. To run your first Kotlin program, press the Run button in the upper-right. Make sure that the "On-the-fly type checking" box is selected. You should see a screen like the following image. This is a web application that lets you run Kotlin programs in your browser.įollow this link to bring up the web application. We'll skip the software installs for now and instead work with an online resource called. Usually, you'll run a Kotlin program from an application called an Integrated Development Environment or "IDE". This is the first article in the Kotlin for Students series and will teach you how to run and analyze your first Kotlin program. ![]() Kotlin for Students #001 - First Kotlin Program
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |