Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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 April 16, 2020 12:21am 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 August 20, 2019 12:36pm 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 May 6, 2019 2:49pm 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 March 3, 2019 9:10am 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 June 7, 2018 10:06am 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 June 6, 2018 9:59pm 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 April 12, 2018 5:33pm 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 March 15, 2018 9:10am 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 March 1, 2018 8:50am 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 February 8, 2018 2:12am 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 September 15, 2017 5:43pm 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 September 4, 2017 3:36pm 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 August 16, 2017 5:26am 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 August 7, 2017 6:39am 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 August 4, 2017 12:13am 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 July 29, 2017 2:21pm 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 July 26, 2017 9:20am 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 July 13, 2017 12:54pm 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 July 13, 2017 8:05am 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 June 9, 2017 9:49am 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 June 6, 2017 6:51pm 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 June 6, 2017 12:49am 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 June 4, 2017 11:17am 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 June 1, 2017 5:52pm 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 May 8, 2017 6:46am 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord