Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 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
  • 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.

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