✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model
    • Close
  • CHRISTOPHER Riley
    PLUS
    CHRISTOPHER Riley
    Courses Plus Student 1,161 Points

    Why am I getting a naming error with: public String getshipType(){ return shipType;

    Posted on Apr 16, 2020 by CHRISTOPHER Riley
    CHRISTOPHER Riley
    Courses Plus Student 1,161 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • Prosper moyo
    Prosper moyo
    1,876 Points

    PLEASE help i cant find my error

    Posted on Aug 20, 2019 by Prosper moyo
    Prosper moyo
    1,876 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • Tatenda Andrew Kwandara
    Tatenda Andrew Kwandara
    18,322 Points

    Finally, add the setter method!

    Posted on May 6, 2019 by Tatenda Andrew Kwandara
    Tatenda Andrew Kwandara
    18,322 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • Tafadzwa Nyazorwe
    Tafadzwa Nyazorwe
    17,053 Points

    Finally add a setter method

    Posted on Mar 3, 2019 by Tafadzwa Nyazorwe
    Tafadzwa Nyazorwe
    17,053 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    2 Answers

  • prosper nyamukondiwa
    prosper nyamukondiwa
    656 Points

    add the setter

    Posted on Jun 7, 2018 by prosper nyamukondiwa
    prosper nyamukondiwa
    656 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • prosper nyamukondiwa
    prosper nyamukondiwa
    656 Points

    creating a new class called spaceship

    Posted on Jun 6, 2018 by prosper nyamukondiwa
    prosper nyamukondiwa
    656 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    2 Answers

  • Jonathan Chaperuka
    Jonathan Chaperuka
    2,043 Points

    i dont knw waht iam doing wrong here.. help

    Posted on Apr 12, 2018 by Jonathan Chaperuka
    Jonathan Chaperuka
    2,043 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • Chido Vambe
    Chido Vambe
    4,638 Points

    Next, we need getter and setter methods for our member variable. Let's start with the getter method. Add a method to get

    Posted on Mar 15, 2018 by Chido Vambe
    Chido Vambe
    4,638 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • joshua milanya
    PLUS
    joshua milanya
    Courses Plus Student 564 Points

    How do you use the getter method with a public static final String member variable?

    Posted on Mar 1, 2018 by joshua milanya
    joshua milanya
    Courses Plus Student 564 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • Dominic Sayers
    Dominic Sayers
    4,279 Points

    Finally, add the setter method What am I doing wrong?

    Posted on Feb 8, 2018 by Dominic Sayers
    Dominic Sayers
    4,279 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    2 Answers

  • Elvis Chitsungo
    Elvis Chitsungo
    1,817 Points

    Can someone help.

    Posted on Sep 15, 2017 by Elvis Chitsungo
    Elvis Chitsungo
    1,817 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    6 Answers

  • Geraldine Tanaka Munyoro
    Geraldine Tanaka Munyoro
    5,170 Points

    i need help been stuck for two days

    Posted on Sep 4, 2017 by Geraldine Tanaka Munyoro
    Geraldine Tanaka Munyoro
    5,170 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    3 Answers

  • Yahoo Mayers
    Yahoo Mayers
    659 Points

    Not able to go past Quiz

    Posted on Aug 16, 2017 by Yahoo Mayers
    Yahoo Mayers
    659 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • tawanda imbayarwo
    tawanda imbayarwo
    2,947 Points

    please help, i cant find my mistake

    Posted on Aug 7, 2017 by tawanda imbayarwo
    tawanda imbayarwo
    2,947 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    2 Answers

  • TRACY ZIWEWE
    TRACY ZIWEWE
    1,820 Points

    Build an Interactive story App

    Posted on Aug 4, 2017 by TRACY ZIWEWE
    TRACY ZIWEWE
    1,820 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    0 Answers

  • Victor Terzea
    Victor Terzea
    4,747 Points

    Next, we need getter and setter methods for our member variable. Let's start with the getter method. Add a method to get

    Posted on Jul 29, 2017 by Victor Terzea
    Victor Terzea
    4,747 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    2 Answers

  • Sean Walker
    Sean Walker
    1,792 Points

    shipType!!!!! last question...adding setter method!

    Posted on Jul 26, 2017 by Sean Walker
    Sean Walker
    1,792 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    3 Answers

  • Michael Tsaga
    Michael Tsaga
    20,180 Points

    challenge Task 4of 4 Finally,add the setter

    Posted on Jul 13, 2017 by Michael Tsaga
    Michael Tsaga
    20,180 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    0 Answers

  • Michael Tsaga
    Michael Tsaga
    20,180 Points

    build an interactive story app....challenge 4 of 4 ...finally add the setter

    Posted on Jul 13, 2017 by Michael Tsaga
    Michael Tsaga
    20,180 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • Jc Francisco
    Jc Francisco
    925 Points

    Challenge Task 3 of 4: Getter and Setter

    Posted on Jun 9, 2017 by Jc Francisco
    Jc Francisco
    925 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    3 Answers

  • Jorge Ponce
    Jorge Ponce
    2,252 Points

    Next, we need getter and setter methods for our member variable. Let's start with the getter method. Add a method to get

    Posted on Jun 6, 2017 by Jorge Ponce
    Jorge Ponce
    2,252 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • Jorge Ponce
    Jorge Ponce
    2,252 Points

    i don't no what happend with this code aaaa

    Posted on Jun 6, 2017 by Jorge Ponce
    Jorge Ponce
    2,252 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    3 Answers

  • Adesh Thakare
    Adesh Thakare
    685 Points

    Code not working

    Posted on Jun 4, 2017 by Adesh Thakare
    Adesh Thakare
    685 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • kelvin gwaruka
    kelvin gwaruka
    931 Points

    Getter and setter methods

    Posted on Jun 1, 2017 by kelvin gwaruka
    kelvin gwaruka
    931 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    1 Answer

  • Luke Horvath
    Luke Horvath
    590 Points

    can not return string as int

    Posted on May 8, 2017 by Luke Horvath
    Luke Horvath
    590 Points
    • Android
    • Build an Interactive Story App
    • The Model-View-Presenter Pattern
    • Creating a Data Model

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.