✨ 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:
    • Android
    • Kotlin for Java Developers
    • Close
  • Silas Benza
    Silas Benza
    5,117 Points

    What does this print?

    Posted on Mar 22, 2021 by Silas Benza
    Silas Benza
    5,117 Points
    • Android
    • Kotlin for Java Developers
    • Is This Thing On?
    • Game Over

    0 Answers

  • Silas Benza
    Silas Benza
    5,117 Points

    What does it print?

    Posted on Mar 19, 2021 by Silas Benza
    Silas Benza
    5,117 Points
    • Android
    • Kotlin for Java Developers
    • Is This Thing On?
    • Game Over

    0 Answers

  • Max Green
    Max Green
    12,517 Points

    Passing parameter to the function

    Posted on Jan 20, 2020 by Max Green
    Max Green
    12,517 Points
    • Android
    • Kotlin for Java Developers
    • Hello Kotlin!
    • Stacking the Deck

    0 Answers

  • jide delano
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    jide delano
    Python Development Techdegree Student 14,220 Points

    I get an warning "Lambda arguments should be moved outside of parenthesis"

    Posted on Sep 28, 2019 by jide delano
    .a{fill-rule:evenodd;}techdegree
    jide delano
    Python Development Techdegree Student 14,220 Points
    • Android
    • Kotlin for Java Developers
    • Hello Kotlin!
    • Compacting the Deck

    0 Answers

  • Tonnie Fanadez
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Tonnie Fanadez
    UX Design Techdegree Graduate 22,796 Points

    Background Music on this video is Next Level!

    Posted on Sep 5, 2019 by Tonnie Fanadez
    .a{fill-rule:evenodd;}techdegree seal-36
    Tonnie Fanadez
    UX Design Techdegree Graduate 22,796 Points
    • Android
    • Kotlin for Java Developers
    • Modelling Solitaire
    • The Surface Is Fine and Powdery

    1 Answer

  • Tonnie Fanadez
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Tonnie Fanadez
    UX Design Techdegree Graduate 22,796 Points

    Use of Companion Objects in Kotlin

    Posted on Sep 1, 2019 by Tonnie Fanadez
    .a{fill-rule:evenodd;}techdegree seal-36
    Tonnie Fanadez
    UX Design Techdegree Graduate 22,796 Points
    • Android
    • Kotlin for Java Developers
    • Modelling Solitaire
    • The Surface Is Fine and Powdery

    1 Answer

  • Sebastian H
    Sebastian H
    19,905 Points

    How risky is it to link to a solitaire game in the teachers notes? Goodbye Kotlin course, helloooooo solitaire!

    Posted on Nov 18, 2018 by Sebastian H
    Sebastian H
    19,905 Points
    • Android
    • Kotlin for Java Developers
    • Hello Kotlin!
    • Creating the Project

    1 Answer

  • James Han
    James Han
    9,419 Points

    Can't finish quiz. Get's stuck on last question.

    Posted on Oct 23, 2018 by James Han
    James Han
    9,419 Points
    • Android
    • Kotlin for Java Developers
    • Hello Kotlin!
    • Card Constructors

    0 Answers

  • NATTAAEK WATTANUYAN
    NATTAAEK WATTANUYAN
    118 Points

    Kotlin cannot access class

    Posted on May 7, 2018 by NATTAAEK WATTANUYAN
    NATTAAEK WATTANUYAN
    118 Points
    • Android
    • Kotlin for Java Developers
    • Modelling Solitaire
    • Testing the Tableau: Adding Cards

    0 Answers

  • NATTAAEK WATTANUYAN
    NATTAAEK WATTANUYAN
    118 Points

    why my cards.toMutableList() is unsolved reference

    Posted on May 6, 2018 by NATTAAEK WATTANUYAN
    NATTAAEK WATTANUYAN
    118 Points
    • Android
    • Kotlin for Java Developers
    • Hello Kotlin!
    • Using the Deck

    1 Answer

  • Raúl Dorado Pulido
    Raúl Dorado Pulido
    483 Points

    Error running test

    Posted on Feb 22, 2018 by Raúl Dorado Pulido
    Raúl Dorado Pulido
    483 Points
    • Android
    • Kotlin for Java Developers
    • Is This Thing On?
    • It's Alive!

    0 Answers

  • Ivo Beckers
    Ivo Beckers
    728 Points

    Isn't this better practice?

    Posted on Jan 17, 2018 by Ivo Beckers
    Ivo Beckers
    728 Points
    • Android
    • Kotlin for Java Developers
    • Modelling Solitaire
    • Checking Suits

    1 Answer

  • Ivo Beckers
    Ivo Beckers
    728 Points

    Why Collections.shuffle(cardsInDeck) ?

    Posted on Jan 16, 2018 by Ivo Beckers
    Ivo Beckers
    728 Points
    • Android
    • Kotlin for Java Developers
    • Hello Kotlin!
    • Using the Deck

    1 Answer

  • mycah hammond
    mycah hammond
    319 Points

    It would be helpful to highlight the correct answer and offer some sort of explanation instead of just saying "wrong"...

    Posted on Jan 14, 2018 by mycah hammond
    mycah hammond
    319 Points
    • Android
    • Kotlin for Java Developers
    • Is This Thing On?
    • Game Over

    1 Answer

  • Goh Chang Ming
    Goh Chang Ming
    2,095 Points

    Dear Ben , I am having a problem with the debugPrint in the App.kt file, where the programme is printing Card@5ca881b5

    Posted on Dec 5, 2017 by Goh Chang Ming
    Goh Chang Ming
    2,095 Points
    • Android
    • Kotlin for Java Developers
    • Is This Thing On?
    • Seeing Clearly

    1 Answer

  • Demetre Tsagouris
    Demetre Tsagouris
    8,517 Points

    Can this project/course be done in android studio?

    Posted on Nov 16, 2017 by Demetre Tsagouris
    Demetre Tsagouris
    8,517 Points
    • Android
    • Kotlin for Java Developers
    • Hello Kotlin!
    • Creating the Project

    1 Answer

  • Sai Krishna Katkam
    PLUS
    Sai Krishna Katkam
    Courses Plus Student 1,946 Points

    How can we use "val" keyword with MutableList in Kotlin?! Isn't it supposed to stop us from changing a value?

    Posted on Oct 28, 2017 by Sai Krishna Katkam
    Sai Krishna Katkam
    Courses Plus Student 1,946 Points
    • Android
    • Kotlin for Java Developers
    • Modelling Solitaire
    • Building the Foundation

    1 Answer

  • Laurie Wu
    Laurie Wu
    709 Points

    I got an assertion failed error for the line assert(numGames < maxGames).

    Posted on Sep 18, 2017 by Laurie Wu
    Laurie Wu
    709 Points
    • Android
    • Kotlin for Java Developers
    • Is This Thing On?
    • It's Alive!

    2 Answers

  • harry houdini
    seal-mask
    PLUS
    .a{fill-rule:evenodd;}techdegree
    harry houdini
    Android Development Techdegree Student 535 Points

    Order of things

    Posted on May 30, 2017 by harry houdini
    .a{fill-rule:evenodd;}techdegree
    harry houdini
    Android Development Techdegree Student 535 Points
    • Android
    • Kotlin for Java Developers
    • Hello Kotlin!
    • Creating the Card Class

    1 Answer

  • Sourabh Pal
    Sourabh Pal
    210 Points

    cardsInPile in forEachIndexed function

    Posted on May 27, 2017 by Sourabh Pal
    Sourabh Pal
    210 Points
    • Android
    • Kotlin for Java Developers
    • Putting It All Together
    • Finishing the Reset

    2 Answers

  • Sourabh Pal
    Sourabh Pal
    210 Points

    Shouldn't the answer be 012? Aren't 0 and 2 inclusive in the range?

    Posted on May 27, 2017 by Sourabh Pal
    Sourabh Pal
    210 Points
    • Android
    • Kotlin for Java Developers
    • Modelling Solitaire
    • Finishing the Pieces

    2 Answers

  • Keyur Golani
    Keyur Golani
    6,703 Points

    The GameTest is taking forever and then going into OutOfMemory error. I'm not sure what is it that I'm doing wrong.

    Posted on May 27, 2017 by Keyur Golani
    Keyur Golani
    6,703 Points
    • Android
    • Kotlin for Java Developers
    • Is This Thing On?
    • It's Alive!

    1 Answer

  • Sourabh Pal
    Sourabh Pal
    210 Points

    Property

    Posted on May 24, 2017 by Sourabh Pal
    Sourabh Pal
    210 Points
    • Android
    • Kotlin for Java Developers
    • Hello Kotlin!
    • The Card Class: Kollector's Edition

    1 Answer

  • Varun Dixit
    Varun Dixit
    60 Points

    How kotlin differentiate between these variables????

    Posted on May 19, 2017 by Varun Dixit
    Varun Dixit
    60 Points
    • Android
    • Kotlin for Java Developers
    • Hello Kotlin!
    • Finishing the Card Class

    1 Answer

  • sumitanantwar
    sumitanantwar
    1,511 Points

    Error in for loop ?

    Posted on Jan 31, 2017 by sumitanantwar
    sumitanantwar
    1,511 Points
    • Android
    • Kotlin for Java Developers
    • Modelling Solitaire
    • Removing Cards

    2 Answers

  • Rabab El-Zohbi
    Rabab El-Zohbi
    1,859 Points

    What does this print?

    Posted on Sep 20, 2016 by Rabab El-Zohbi
    Rabab El-Zohbi
    1,859 Points
    • Android
    • Kotlin for Java Developers
    • Is This Thing On?
    • Game Over

    0 Answers

  • gaurav8199
    gaurav8199
    1,695 Points

    starting with Kotlin

    Posted on Sep 7, 2016 by gaurav8199
    gaurav8199
    1,695 Points
    • Android
    • Kotlin for Java Developers
    • Hello Kotlin!
    • Introducing Kotlin and the Project

    1 Answer

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.