-
-
Save udacityandroid/aebbe8df6932e9c1c9bf to your computer and use it in GitHub Desktop.
Android Development for Beginners : Practice Set 2 Email Directory Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String firstName = "Lyla"; | |
String lastName = "Fujiwara"; | |
String contactInfo = firstName + " " + lastName; | |
contactInfo = "<" + lastName + "." + firstName + "@justjava.com>"; | |
display(contactInfo); |
Maybe
String firstName = "Lyla";
String lastName = "Fujiwara";
String fullName = firstName + " " + lastName;
String contactInfo = "<" + lastName + "." + firstName + "@justjava.com>";
display(fullName + contactInfo);
This worked for me :
String firstName = "Lyla ";
String lastName = "Fujiwara";
String contactInfo = firstName + lastName + " <" + lastName + "." + firstName + "@justjava.com>";
display(contactInfo);
- I merged the 3rd line with the 4th line and removed the double quotes in the third line
- I also added a space to the string of the first name, to create a space between the first and last name
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
public void display(String i)
so
public void display1(String i) {
TextView t = (TextView) findViewById(R.id.display_text_view);
t.setText(i + "");
}