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
  • Mohammad Abdur Rahman
    Mohammad Abdur Rahman
    1,986 Points

    why are we using return with getter and not with setter??

    Posted March 2, 2017 8:17am by Mohammad Abdur Rahman
    Mohammad Abdur Rahman
    1,986 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    0 Answers

  • yadin michaeli
    PLUS
    yadin michaeli
    Courses Plus Student 5,423 Points

    About the choice and page class ?

    Posted December 22, 2016 10:14am by yadin michaeli
    yadin michaeli
    Courses Plus Student 5,423 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    1 Answer

  • Eli Goodwin
    Eli Goodwin
    29,502 Points

    Downloaded project files because my copy got deleted... "Migrate Project to Gradle?"

    Posted July 15, 2016 2:17am by Eli Goodwin
    Eli Goodwin
    29,502 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    0 Answers

  • Rajeev Mohan
    PLUS
    Rajeev Mohan
    Courses Plus Student 281 Points

    Why activities are kept in UI package and not controller package?

    Posted July 11, 2016 1:08pm by Rajeev Mohan
    Rajeev Mohan
    Courses Plus Student 281 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    0 Answers

  • snehal ahire
    PLUS
    snehal ahire
    Courses Plus Student 42 Points

    getDrawable

    Posted May 31, 2016 9:55am by snehal ahire
    snehal ahire
    Courses Plus Student 42 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    1 Answer

  • Suleyman Orazgulyyev
    PLUS
    Suleyman Orazgulyyev
    Courses Plus Student 5,798 Points

    Setter or Constructor?

    Posted February 13, 2016 7:51pm by Suleyman Orazgulyyev
    Suleyman Orazgulyyev
    Courses Plus Student 5,798 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    2 Answers

  • Ayaz Alam
    Ayaz Alam
    169 Points

    Which computer you are using ben? I know it's a mac but which one?

    Posted February 5, 2016 12:36pm by Ayaz Alam
    Ayaz Alam
    169 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    0 Answers

  • Ayaz Alam
    Ayaz Alam
    169 Points

    Why we are storing image as int Variable?

    Posted February 4, 2016 7:29pm by Ayaz Alam
    Ayaz Alam
    169 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    1 Answer

  • Tom Finet
    Tom Finet
    7,027 Points

    How do getters and setters work?

    Posted December 18, 2015 2:29pm by Tom Finet
    Tom Finet
    7,027 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    1 Answer

  • amit maddheshiya
    amit maddheshiya
    2,189 Points

    in private Choice mChoice; don't have Choice option in menu & its showing error.

    Posted September 21, 2015 10:32am by amit maddheshiya
    amit maddheshiya
    2,189 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    0 Answers

  • Niyamat Almass
    Niyamat Almass
    8,176 Points

    What is the benefit of getter and setter method?

    Posted July 15, 2015 7:29am by Niyamat Almass
    Niyamat Almass
    8,176 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    1 Answer

  • John Sparrow
    PLUS
    John Sparrow
    Courses Plus Student 3,628 Points

    problem with Eclipse

    Posted July 10, 2015 8:06pm by John Sparrow
    John Sparrow
    Courses Plus Student 3,628 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    3 Answers

  • ziv brodie
    ziv brodie
    1,348 Points

    Why is it important that all of the getter and setter methods not include the "m" in their names?

    Posted July 9, 2015 3:50pm by ziv brodie
    ziv brodie
    1,348 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    1 Answer

  • MUZ140537 Kudakwashe Betera
    MUZ140537 Kudakwashe Betera
    4,875 Points

    generate

    Posted May 6, 2015 10:23am by MUZ140537 Kudakwashe Betera
    MUZ140537 Kudakwashe Betera
    4,875 Points
    • Android
    • Build an Interactive Story App (Retired)
    • The Model-View-Controller Pattern
    • Implementing the Data Model

    1 Answer

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