Skip to content

Instantly share code, notes, and snippets.

@msomu
Created June 4, 2017 14:01
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 msomu/79db01c9518746ce46bfffd234f1e2b8 to your computer and use it in GitHub Desktop.
Save msomu/79db01c9518746ce46bfffd234f1e2b8 to your computer and use it in GitHub Desktop.
Introduction to Kotlin
public class Movies {
private String id;
private String url;
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public String toString() {
return "Movie{" +
"id=" + id +
", url='" + url + '\'' +
'}';
}
}
data class Movie(
var id: String,
var url: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment