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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

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

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

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • Youssouf Conde
    Youssouf Conde
    525 Points

    I'm have a hard time understanding why the code won't run.

    Posted January 28, 2021 10:32pm by Youssouf Conde
    Youssouf Conde
    525 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Roger sam
    Roger sam
    575 Points

    Add a getter method that exposes the color field.

    Posted May 21, 2020 11:20am by Roger sam
    Roger sam
    575 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Billie Healy
    Billie Healy
    1,112 Points

    Add a getter method that exposes color field

    Posted May 11, 2020 6:48pm by Billie Healy
    Billie Healy
    1,112 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    2 Answers

  • Billie Healy
    Billie Healy
    1,112 Points

    GoKart.java

    Posted May 10, 2020 10:08am by Billie Healy
    Billie Healy
    1,112 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Julie Austin
    Julie Austin
    1,322 Points

    It keeps asking if I forgot to return color but it's RIGHT THERE?!

    Posted November 9, 2019 11:27pm by Julie Austin
    Julie Austin
    1,322 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • dorelmarian .
    dorelmarian .
    432 Points

    Add a getter method that exposes the color field.

    Posted February 19, 2019 8:18pm by dorelmarian .
    dorelmarian .
    432 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • SYMIEN MOORE
    SYMIEN MOORE
    1,592 Points

    add a getter

    Posted November 25, 2018 1:05am by SYMIEN MOORE
    SYMIEN MOORE
    1,592 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Kevin Jervis
    Kevin Jervis
    884 Points

    Hi guys Trying to add a getter method to expose the color field. However keep getting an error

    Posted October 27, 2018 1:26pm by Kevin Jervis
    Kevin Jervis
    884 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Seán Kennedy
    Seán Kennedy
    899 Points

    I don't understand methods or 'getters'. I can't do this exercise.

    Posted August 29, 2018 1:59pm by Seán Kennedy
    Seán Kennedy
    899 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Mary Trollinger
    Mary Trollinger
    354 Points

    I cannot figure out how to complete getColor.

    Posted May 15, 2018 9:16pm by Mary Trollinger
    Mary Trollinger
    354 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Prashanth Narendra
    Prashanth Narendra
    479 Points

    Add a getter method that exposes the color field.

    Posted April 10, 2018 8:50pm by Prashanth Narendra
    Prashanth Narendra
    479 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Kasey Domer
    Kasey Domer
    787 Points

    Question on method lesson

    Posted January 22, 2018 12:37pm by Kasey Domer
    Kasey Domer
    787 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    2 Answers

  • Spacey Bread
    Spacey Bread
    6,256 Points

    Am I wrong here?

    Posted December 27, 2017 5:57pm by Spacey Bread
    Spacey Bread
    6,256 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Tony Capps
    Tony Capps
    2,123 Points

    What do they want?

    Posted December 26, 2017 7:14am by Tony Capps
    Tony Capps
    2,123 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Sandeep Annapareddy
    Sandeep Annapareddy
    3,141 Points

    Getter method - Formatting Error

    Posted December 21, 2017 4:15pm by Sandeep Annapareddy
    Sandeep Annapareddy
    3,141 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    2 Answers

  • Andrew Booth
    Andrew Booth
    1,578 Points

    ....? TeamTreeHouse bug?

    Posted November 24, 2017 6:08am by Andrew Booth
    Andrew Booth
    1,578 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Barisan Firildak
    Barisan Firildak
    403 Points

    How can I solve this?

    Posted November 13, 2017 3:41pm by Barisan Firildak
    Barisan Firildak
    403 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • ameus namite
    ameus namite
    369 Points

    task: Add a getter method that exposes the color field. what is problem with my code?

    Posted November 2, 2017 9:35am by ameus namite
    ameus namite
    369 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • nikhil davasam
    nikhil davasam
    2,182 Points

    getter

    Posted September 21, 2017 3:03pm by nikhil davasam
    nikhil davasam
    2,182 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    2 Answers

  • Joshua Salas
    Joshua Salas
    732 Points

    Need help says not returning color

    Posted August 7, 2017 11:11pm by Joshua Salas
    Joshua Salas
    732 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Michael Wheeler
    Michael Wheeler
    1,036 Points

    Add a getter method that expose color? private String color = "red"; } public String getColor() { retu

    Posted July 23, 2017 7:50pm by Michael Wheeler
    Michael Wheeler
    1,036 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • David Geoffry
    David Geoffry
    444 Points

    Need help with putting in the return method plz have the getter but not the return

    Posted May 3, 2017 12:45am by David Geoffry
    David Geoffry
    444 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    4 Answers

  • Chris Loucks
    Chris Loucks
    6,788 Points

    Add a getter method that exposes the color field.

    Posted February 21, 2017 8:59pm by Chris Loucks
    Chris Loucks
    6,788 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    2 Answers

  • Erica Ferguson
    Erica Ferguson
    429 Points

    Add a getter...

    Posted February 17, 2017 3:44am by Erica Ferguson
    Erica Ferguson
    429 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Sondria Perry
    Sondria Perry
    5,239 Points

    how do i do this ?

    Posted February 1, 2017 4:45pm by Sondria Perry
    Sondria Perry
    5,239 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Joshua Morillo
    Joshua Morillo
    2,562 Points

    I'm stuck on the challange "Add a getter method that exposes the color field."

    Posted December 26, 2016 7:40am by Joshua Morillo
    Joshua Morillo
    2,562 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    1 Answer

  • Michel Bourgeois
    Michel Bourgeois
    731 Points

    Add a getter method that exposes the color field.

    Posted December 14, 2016 7:39am by Michel Bourgeois
    Michel Bourgeois
    731 Points
    • Java
    • Java Objects
    • Meet Objects
    • Add a Getter

    5 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.