Android Open Source - firstcodeandroid Joke

From Project

Back to project page firstcodeandroid.


The source code is released under:

MIT License

If you think the Android project firstcodeandroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.vjia.jokeking;
/*from  ww w. ja v  a 2  s . com*/
public class Joke {

   * the detail content of Joke
  private String content;

   * how many people have seen it
  private int review;

  public String getContent() {
    return content;

  public void setContent(String content) {
    this.content = content;

  public int getReview() {
    return review;

  public void setReview(int review) { = review;

  public Joke(String content, int review) {
    // TODO Auto-generated constructor stub
    this.content = content; = review;

  public String toString() {
    // TODO Auto-generated method stub
    String s ;
    s = String.format("Joke ( content [%s], review [%d] )", content, review);
    return s;


Java Source Code List