Skip to main content

🚀 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
  • Tristan Bell
    Tristan Bell
    2,039 Points

    String

    Posted October 26, 2016 4:20pm by Tristan Bell
    Tristan Bell
    2,039 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • Hammad Shafiq
    Hammad Shafiq
    623 Points

    The code is correct but the compiler gives an error

    Posted October 8, 2016 8:30pm by Hammad Shafiq
    Hammad Shafiq
    623 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • Gnani Pasupula
    Gnani Pasupula
    3,915 Points

    Syntax errors

    Posted April 19, 2016 7:28am by Gnani Pasupula
    Gnani Pasupula
    3,915 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • Bryan Beemer
    PLUS
    Bryan Beemer
    Courses Plus Student 1,138 Points

    I can't get this to work, cant figure out what is wrong!

    Posted March 25, 2016 4:10am by Bryan Beemer
    Bryan Beemer
    Courses Plus Student 1,138 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    2 Answers

  • Robert Kendall
    Robert Kendall
    1,287 Points

    Bummer! The naming convention is 'getVariableName' (without the 'm' prefix).

    Posted August 15, 2015 2:10pm by Robert Kendall
    Robert Kendall
    1,287 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • Sundarabalaji Kishore
    Sundarabalaji Kishore
    1,677 Points

    Naming Convention Error

    Posted June 28, 2015 7:21pm by Sundarabalaji Kishore
    Sundarabalaji Kishore
    1,677 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • MUZ140881 Munyaradzi Dhodho
    MUZ140881 Munyaradzi Dhodho
    1,326 Points

    Getter and setter methods

    Posted June 25, 2015 5:18pm by MUZ140881 Munyaradzi Dhodho
    MUZ140881 Munyaradzi Dhodho
    1,326 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • alex gwartney
    alex gwartney
    8,849 Points

    The quiz is saying that my set method is wrong and i cant seem to see why its not working?

    Posted May 24, 2015 7:14pm by alex gwartney
    alex gwartney
    8,849 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    3 Answers

  • MUZ140721 Bothwell Nhidza
    MUZ140721 Bothwell Nhidza
    6,967 Points

    How do you add getters and setter in Android java?

    Posted May 11, 2015 8:25am by MUZ140721 Bothwell Nhidza
    MUZ140721 Bothwell Nhidza
    6,967 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    3 Answers

  • MUZ140721 Bothwell Nhidza
    MUZ140721 Bothwell Nhidza
    6,967 Points

    Would like to review past video, looks like I rushed to the challenge

    Posted May 11, 2015 8:16am by MUZ140721 Bothwell Nhidza
    MUZ140721 Bothwell Nhidza
    6,967 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    0 Answers

  • MUZ140668 Gilbert Sibanda
    MUZ140668 Gilbert Sibanda
    4,918 Points

    Finally, add a setter method! whats wrong with my code?

    Posted April 29, 2015 8:49am by MUZ140668 Gilbert Sibanda
    MUZ140668 Gilbert Sibanda
    4,918 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    3 Answers

  • Michael Partridge
    Michael Partridge
    7,129 Points

    Do you mean private?

    Posted April 29, 2015 3:30am by Michael Partridge
    Michael Partridge
    7,129 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • Michael Moore
    Michael Moore
    13,564 Points

    illegal start

    Posted April 27, 2015 9:15pm by Michael Moore
    Michael Moore
    13,564 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • MUZ140584 Heredity Mbundire
    MUZ140584 Heredity Mbundire
    4,979 Points

    Finally, add the setter method!

    Posted April 17, 2015 10:23am by MUZ140584 Heredity Mbundire
    MUZ140584 Heredity Mbundire
    4,979 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • MUZ140584 Heredity Mbundire
    MUZ140584 Heredity Mbundire
    4,979 Points

    Now add a String member variable named mType. Make it public.

    Posted April 17, 2015 9:53am by MUZ140584 Heredity Mbundire
    MUZ140584 Heredity Mbundire
    4,979 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    3 Answers

  • MUZ140073 Lionell Matambanadzo
    MUZ140073 Lionell Matambanadzo
    12,509 Points

    the model view-controller pattern

    Posted January 7, 2015 7:16am by MUZ140073 Lionell Matambanadzo
    MUZ140073 Lionell Matambanadzo
    12,509 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • MUZ140073 Lionell Matambanadzo
    MUZ140073 Lionell Matambanadzo
    12,509 Points

    The Model view controller pattern can you help

    Posted January 6, 2015 12:36pm by MUZ140073 Lionell Matambanadzo
    MUZ140073 Lionell Matambanadzo
    12,509 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • MUZ140073 Lionell Matambanadzo
    MUZ140073 Lionell Matambanadzo
    12,509 Points

    implementing the data mode

    Posted January 6, 2015 12:08pm by MUZ140073 Lionell Matambanadzo
    MUZ140073 Lionell Matambanadzo
    12,509 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • ma ali
    PLUS
    ma ali
    Courses Plus Student 2,788 Points

    Finally, add the setter method!

    Posted December 22, 2014 11:06pm by ma ali
    ma ali
    Courses Plus Student 2,788 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • ma ali
    PLUS
    ma ali
    Courses Plus Student 2,788 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 December 22, 2014 10:50pm by ma ali
    ma ali
    Courses Plus Student 2,788 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    2 Answers

  • MUZ140118 Cathrine Makuya
    MUZ140118 Cathrine Makuya
    10,300 Points

    stage 3 challenge 3

    Posted December 12, 2014 1:58pm by MUZ140118 Cathrine Makuya
    MUZ140118 Cathrine Makuya
    10,300 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    1 Answer

  • MUZ140118 Cathrine Makuya
    MUZ140118 Cathrine Makuya
    10,300 Points

    stage 3 challenge 2

    Posted December 12, 2014 1:49pm by MUZ140118 Cathrine Makuya
    MUZ140118 Cathrine Makuya
    10,300 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Creating a Data Model

    5 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