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
  • kodylinux
    PLUS
    kodylinux
    Courses Plus Student 206 Points

    Let's create a new class! Start by declaring a new class named PictureBook. Make it public

    Posted April 26, 2021 3:12am by kodylinux
    kodylinux
    Courses Plus Student 206 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    0 Answers

  • Colm Coffey
    Colm Coffey
    230 Points

    What is wrong with this code? 'Illegal Start of Type'

    Posted February 2, 2021 4:29pm by Colm Coffey
    Colm Coffey
    230 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Joshua Marriott
    Joshua Marriott
    456 Points

    Need help!

    Posted March 16, 2020 12:44pm by Joshua Marriott
    Joshua Marriott
    456 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    0 Answers

  • Luke Staehs
    Luke Staehs
    3,298 Points

    Why is this code not working?

    Posted March 11, 2020 10:46pm by Luke Staehs
    Luke Staehs
    3,298 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • michael lee
    michael lee
    5,179 Points

    What am I doing wrong

    Posted January 5, 2019 7:28am by michael lee
    michael lee
    5,179 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Abdulraheem Bakare
    Abdulraheem Bakare
    809 Points

    I don't get it I did everything right

    Posted December 3, 2018 12:21am by Abdulraheem Bakare
    Abdulraheem Bakare
    809 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Cibele Bustamante
    PLUS
    Cibele Bustamante
    Courses Plus Student 14,709 Points

    JavaTester.java:65: error: illegal start of expression

    Posted October 14, 2018 4:39pm by Cibele Bustamante
    Cibele Bustamante
    Courses Plus Student 14,709 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Olivia Chai
    Olivia Chai
    2,732 Points

    Help in declaring public class

    Posted October 13, 2018 3:21pm by Olivia Chai
    Olivia Chai
    2,732 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Maya Gronkowski
    Maya Gronkowski
    347 Points

    Im not quite sure what im supposed to do here

    Posted October 12, 2018 12:15pm by Maya Gronkowski
    Maya Gronkowski
    347 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Brolin Osindi
    Brolin Osindi
    1,830 Points

    classes

    Posted June 3, 2018 10:45am by Brolin Osindi
    Brolin Osindi
    1,830 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Jorge Ponce
    Jorge Ponce
    2,252 Points

    forget it

    Posted May 26, 2018 10:57pm by Jorge Ponce
    Jorge Ponce
    2,252 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • prosper nyamukondiwa
    prosper nyamukondiwa
    656 Points

    add a string

    Posted April 26, 2018 8:12pm by prosper nyamukondiwa
    prosper nyamukondiwa
    656 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    2 Answers

  • Chido Vambe
    Chido Vambe
    4,638 Points

    creating a class

    Posted February 28, 2018 10:34am by Chido Vambe
    Chido Vambe
    4,638 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Kabir Haroun
    Kabir Haroun
    259 Points

    Gradle sync failed

    Posted February 3, 2018 2:10pm by Kabir Haroun
    Kabir Haroun
    259 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    0 Answers

  • damir hubanic
    damir hubanic
    280 Points

    public class PictureBook{ public String title{} } Where am I doing it wrong?

    Posted November 29, 2017 9:24pm by damir hubanic
    damir hubanic
    280 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Hussam Ali
    PLUS
    Hussam Ali
    Courses Plus Student 3,626 Points

    i cant understand what do thing !

    Posted September 5, 2017 7:23pm by Hussam Ali
    Hussam Ali
    Courses Plus Student 3,626 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Caleb Seeling
    Caleb Seeling
    1,189 Points

    I can't solve the coding challenge!

    Posted September 4, 2017 2:11pm by Caleb Seeling
    Caleb Seeling
    1,189 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    2 Answers

  • Krystal Smith-Moore
    Krystal Smith-Moore
    4,881 Points

    There stands "add a field variable named title and make it public" soo I added public String title; yet, not working.

    Posted September 2, 2017 1:45pm by Krystal Smith-Moore
    Krystal Smith-Moore
    4,881 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Elvis Chitsungo
    Elvis Chitsungo
    1,817 Points

    i have failed to solve this challenge, can someone help

    Posted August 29, 2017 7:42pm by Elvis Chitsungo
    Elvis Chitsungo
    1,817 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    2 Answers

  • ayush rai
    ayush rai
    307 Points

    how to do this

    Posted August 22, 2017 1:47pm by ayush rai
    ayush rai
    307 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • humphrey nganga
    humphrey nganga
    636 Points

    how do i make a String public

    Posted August 20, 2017 9:33pm by humphrey nganga
    humphrey nganga
    636 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • abdulaziz alhejji
    abdulaziz alhejji
    743 Points

    i keep getting this messege: ./PictureBook.java:3: error: missing return statement } ^ 1 error

    Posted August 19, 2017 1:13pm by abdulaziz alhejji
    abdulaziz alhejji
    743 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • NDUMISO MZAMANI SITHOLE
    NDUMISO MZAMANI SITHOLE
    8,650 Points

    Challenge Task 2 of 2 Now add a String member variable named mTitle. Make it public.

    Posted August 19, 2017 10:22am by NDUMISO MZAMANI SITHOLE
    NDUMISO MZAMANI SITHOLE
    8,650 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Geraldine Tanaka Munyoro
    Geraldine Tanaka Munyoro
    5,170 Points

    I dont get it . Is it a bug or I'm doing something wrong on this task I have declared the member variables

    Posted August 17, 2017 7:03am by Geraldine Tanaka Munyoro
    Geraldine Tanaka Munyoro
    5,170 Points
    • Android
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class

    1 Answer

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