πŸ€‘ Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! πŸš€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
    • 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
  • 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
  • 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,266 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,266 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,447 Points

    Illegal start of 'for'??

    Posted April 3, 2015 7:22pm by Thomas Williams
    Thomas Williams
    9,447 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.

    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.