Android Open Source - firstcodeandroid Fruit

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.example.listviewtest;
/*from w ww . j  av  a 2s.  c o m*/
public class Fruit {

  private String name;
  private int imageId;
  public Fruit(String name, int imageId) {
    super(); = name;
    this.imageId = imageId;
  public String getName() {
    return name;
  public void setName(String name) { = name;
  public int getImageId() {
    return imageId;
  public void setImageId(int imageId) {
    this.imageId = imageId;

Java Source Code List