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

🤑 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

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

  • 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
    • Showing results for:
    • Java
    • Java Data Structures
    • Exploring the Java Collection Framework
    • Sets
    • Close
  • Dinu Comendant
    Dinu Comendant
    6,049 Points

    add vs addAll

    Posted on Apr 21, 2019 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 on May 16, 2018 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 on Apr 16, 2018 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 on Mar 1, 2018 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 on Mar 1, 2018 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 on Dec 29, 2017 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 on Sep 1, 2017 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 on Aug 18, 2017 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 on Aug 6, 2017 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 on Aug 5, 2017 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 on Jun 22, 2017 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 on Jun 9, 2017 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 on May 21, 2017 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 on Mar 5, 2017 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 on Feb 2, 2017 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 on Jan 23, 2017 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 on Jan 21, 2017 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 on Nov 2, 2016 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 on Oct 13, 2016 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 on May 6, 2016 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 on Nov 2, 2015 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 on Aug 31, 2015 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 on Aug 16, 2015 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 on Aug 13, 2015 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 on Jul 15, 2015 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 on Jul 3, 2015 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 on Jun 10, 2015 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 on May 7, 2015 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 on Apr 3, 2015 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 on Mar 27, 2015 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.