✨ 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
    • Build a Simple Android App with Java
    • Improving Our Code
    • Creating a New Class
    • Close
  • 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 on Apr 26, 2021 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 on Feb 2, 2021 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 on Mar 16, 2020 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 on Mar 11, 2020 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 on Jan 5, 2019 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 on Dec 3, 2018 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 on Oct 14, 2018 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 on Oct 13, 2018 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 on Oct 12, 2018 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 on Jun 3, 2018 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 on May 26, 2018 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 on Apr 26, 2018 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 on Feb 28, 2018 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 on Feb 3, 2018 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 on Nov 29, 2017 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 on Sep 5, 2017 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 on Sep 4, 2017 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 on Sep 2, 2017 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 on Aug 29, 2017 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 on Aug 22, 2017 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 on Aug 20, 2017 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 on Aug 19, 2017 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 on Aug 19, 2017 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 on Aug 17, 2017 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.

    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.