Skip to content

Instantly share code, notes, and snippets.

@igor-brishkoski
Created February 5, 2017 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igor-brishkoski/36277fe5c4f8d1b23fade9bb69732274 to your computer and use it in GitHub Desktop.
Save igor-brishkoski/36277fe5c4f8d1b23fade9bb69732274 to your computer and use it in GitHub Desktop.
Awesome App
//AwesomeApp
class User {
String firstName;
String lastName;
String city;
}
...
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
User g = new User("Gandalf", "The White", "Maia");
Log.d("User", "firstName = "+g.firstName+ " lastname = "+g.lastName+" city = "+g.city);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment