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
  • Dinu Comendant
    Dinu Comendant
    6,049 Points

    add vs addAll

    Posted April 21, 2019 10:26am by Dinu Comendant
    Dinu Comendant
    6,049 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • James Adamski
    James Adamski
    3,027 Points

    Unsupported operation error in java-repl

    Posted May 16, 2018 9:09pm by James Adamski
    James Adamski
    3,027 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • Jose Acevedo
    Jose Acevedo
    2,395 Points

    Video framerate looks slow!

    Posted April 16, 2018 7:53pm by Jose Acevedo
    Jose Acevedo
    2,395 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • Andre Kucharzyk
    Andre Kucharzyk
    4,479 Points

    ~11:36 "Returning 0 should only happen for true equality" - I have no idea what Craig meant there.

    Posted March 1, 2018 10:44pm by Andre Kucharzyk
    Andre Kucharzyk
    4,479 Points
    • Java
    • Java Data Structures - Retired
    • Exploring the Java Collection Framework
    • Sets

    2 Answers

  • Andre Kucharzyk
    Andre Kucharzyk
    4,479 Points

    ~8:53 why we are able to add List to Set?! allHashTags.addAll(treet.getHashTags());

    Posted March 1, 2018 10:22pm by Andre Kucharzyk
    Andre Kucharzyk
    4,479 Points
    • Java
    • Java Data Structures - Retired
    • Exploring the Java Collection Framework
    • Sets

    4 Answers

  • TomΓ‘s Borges
    TomΓ‘s Borges
    4,394 Points

    Are ArrayLists data structures or classes? can they be both?

    Posted December 29, 2017 1:39am by TomΓ‘s Borges
    TomΓ‘s Borges
    4,394 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • Clay Janson
    Clay Janson
    96 Points

    I understand the Enhanced for loop but, in this for loop for(Treet treet: treets) what is "treets" in this for loop.

    Posted September 1, 2017 7:06pm by Clay Janson
    Clay Janson
    96 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    2 Answers

  • Ricardo Sala
    Ricardo Sala
    16,212 Points

    SortedSet added new method? How?

    Posted August 18, 2017 5:24pm by Ricardo Sala
    Ricardo Sala
    16,212 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    2 Answers

  • Siu KWAN Yuen
    PLUS
    Siu KWAN Yuen
    Courses Plus Student 2,898 Points

    import packages

    Posted August 6, 2017 3:55am by Siu KWAN Yuen
    Siu KWAN Yuen
    Courses Plus Student 2,898 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    4 Answers

  • Adarsh Cavale
    Adarsh Cavale
    2,262 Points

    You said Set is an interface. How come you don't have to implement the interface?

    Posted August 5, 2017 1:40pm by Adarsh Cavale
    Adarsh Cavale
    2,262 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • alexgomez2019
    alexgomez2019
    5,556 Points

    When were the 58 treets loaded?

    Posted June 22, 2017 7:01pm by alexgomez2019
    alexgomez2019
    5,556 Points
    • Java
    • Java Data Structures - Retired
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • Eric Tang
    PLUS
    Eric Tang
    Courses Plus Student 1,300 Points

    for(Treet treet: treets)

    Posted June 9, 2017 12:00pm by Eric Tang
    Eric Tang
    Courses Plus Student 1,300 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • Pranjal Agnihotri
    Pranjal Agnihotri
    4,187 Points

    The Quiz of topic "Set" questions: (Java Track)

    Posted May 21, 2017 2:31pm by Pranjal Agnihotri
    Pranjal Agnihotri
    4,187 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • Martin Gallauner
    Martin Gallauner
    10,808 Points

    Why import java.util.Set and java.util.HashSet?

    Posted March 5, 2017 2:59pm by Martin Gallauner
    Martin Gallauner
    10,808 Points
    • Java
    • Java Data Structures - Retired
    • Exploring the Java Collection Framework
    • Sets

    2 Answers

  • varun dixit
    varun dixit
    130 Points

    what is this ??? i'm not able to understand please help me out...

    Posted February 2, 2017 9:51pm by varun dixit
    varun dixit
    130 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • Subham Singh
    Subham Singh
    86 Points

    array-based and collection-based APIs

    Posted January 23, 2017 12:31pm by Subham Singh
    Subham Singh
    86 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    2 Answers

  • Christopher Mlalazi
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Christopher Mlalazi
    Front End Web Development Techdegree Graduate 17,305 Points

    Imports == Alphabetical order?

    Posted January 21, 2017 12:03am by Christopher Mlalazi
    .a{fill-rule:evenodd;}techdegree seal-36
    Christopher Mlalazi
    Front End Web Development Techdegree Graduate 17,305 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    3 Answers

  • tomtrnka
    tomtrnka
    9,780 Points

    How to write a method for printing all items from Lists AND Sets?

    Posted November 2, 2016 10:00pm by tomtrnka
    tomtrnka
    9,780 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    3 Answers

  • Sashreek Siddhartha Reddy Dammu
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Sashreek Siddhartha Reddy Dammu
    Java Web Development Techdegree Student 1,129 Points

    Cannot figure out why I am getting "Cannot find suitable printf method" error

    Posted October 13, 2016 7:16pm by Sashreek Siddhartha Reddy Dammu
    .a{fill-rule:evenodd;}techdegree
    Sashreek Siddhartha Reddy Dammu
    Java Web Development Techdegree Student 1,129 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • Steven Williams
    Steven Williams
    2,199 Points

    Arrays.asList

    Posted May 6, 2016 12:16am by Steven Williams
    Steven Williams
    2,199 Points
    • Java
    • Java Data Structures - Retired
    • Exploring the Java Collection Framework
    • Sets

    2 Answers

  • Manish Giri
    Manish Giri
    16,267 Points

    When were those 58 treets loaded in the Treet object? And how?

    Posted November 2, 2015 10:18pm by Manish Giri
    Manish Giri
    16,267 Points
    • Java
    • Java Data Structures - Retired
    • Exploring the Java Collection Framework
    • Sets

    2 Answers

  • Shariq Shaikh
    Shariq Shaikh
    13,945 Points

    The Hash Tags and Mentions are not loading once I execute the program from the console.

    Posted August 31, 2015 3:37pm by Shariq Shaikh
    Shariq Shaikh
    13,945 Points
    • Java
    • Java Data Structures - Retired
    • Exploring the Java Collection Framework
    • Sets

    3 Answers

  • Shezan Kazi
    Shezan Kazi
    10,807 Points

    Explaination of for statement

    Posted August 16, 2015 5:48pm by Shezan Kazi
    Shezan Kazi
    10,807 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • Rey Adronico Baguio
    Rey Adronico Baguio
    13,672 Points

    Sets

    Posted August 13, 2015 3:44am by Rey Adronico Baguio
    Rey Adronico Baguio
    13,672 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    1 Answer

  • Brent Mayberry
    Brent Mayberry
    1,029 Points

    Differences in way List<String> is created?

    Posted July 15, 2015 7:17pm by Brent Mayberry
    Brent Mayberry
    1,029 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    2 Answers

  • Grigorij Schleifer
    Grigorij Schleifer
    10,365 Points

    CanΒ΄t solve the Sets challenge

    Posted July 3, 2015 4:26am by Grigorij Schleifer
    Grigorij Schleifer
    10,365 Points
    • Java
    • Java Data Structures - Retired
    • Exploring the Java Collection Framework
    • Sets

    5 Answers

  • Alex Lowe
    Alex Lowe
    15,147 Points

    Problem with overtype in Workspace.

    Posted June 10, 2015 10:29pm by Alex Lowe
    Alex Lowe
    15,147 Points
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets

    0 Answers

  • Michael Timbs
    Michael Timbs
    15,761 Points

    loading the treets.ser file?

    Posted May 7, 2015 10:56am by Michael Timbs
    Michael Timbs
    15,761 Points
    • Java
    • Java Data Structures - Retired
    • Exploring the Java Collection Framework
    • Sets

    0 Answers

  • Thomas Williams
    Thomas Williams
    9,465 Points

    Illegal start of 'for'??

    Posted April 3, 2015 7:22pm by Thomas Williams
    Thomas Williams
    9,465 Points
    • Java
    • Java Data Structures - Retired
    • Exploring the Java Collection Framework
    • Sets

    3 Answers

  • Tony Brackins
    Tony Brackins
    28,766 Points

    Set<String> vs HashSet<String>();

    Posted March 27, 2015 6:53pm by Tony Brackins
    Tony Brackins
    28,766 Points
    • Java
    • Java Data Structures - Retired
    • Exploring the Java Collection Framework
    • Sets

    3 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