how to create a string with n android studio code example Example: android studio string new line String str = "my string \n my other string";