From the course: Writing Secure Code for Android by Infosec

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Activity: Understanding string interpolation

Activity: Understanding string interpolation

From the course: Writing Secure Code for Android by Infosec

Activity: Understanding string interpolation

- [Instructor] String interpolation. Activity: understanding string interpolation. Alright, let's check out string interpolation. Open a browser and go to a Kotlin playground. And if it has something in here like, "Hello world," or whatever, get rid of it. So let's just highlight it and delete. What you do want is you want to be able to see the snippets for this activity. So open up wherever you have your activities, and go into Course 2, and find string interpolation, and open that up. And there's a snippets file. Open the snippets file. So I'm just going to copy Snippet 1. I'm going to copy it, and I'm going to go to the playground, and I'm going to right click, and I'm going to paste. Paste, or paste as plain text. It doesn't matter. Now, when you look at this, what do you think is going to happen? We're going to print, with no new line after it, the some placeholder directory has some other placeholder files. So what do you think is going to happen? Since this is one of the…

Contents