Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialEthan Smith
877 PointsI'm not sure how to do this can someone help me?
Here is my code
import com.example.BlogPost;
public class Display {
public static void main(String[] args) {
// Your code here...
Display display = new display();
Syestem.out.printf("This is a new display: %s %n", display);
}
}
``` and ```java
package com.example;
public class BlogPost {
}
1 Answer
Kevin Faust
15,353 PointsHey Ethan,
The problem is that you are creating a Display object when there is no such class. We only have a BlogPost class. The instructions say to "instantiate a new BlogPost". In case you dont understand, I have posted the solution below.
BlogPost bp = new BlogPost();
System.out.printf("This is a blogpost: %s", bp);
Happy coding and best of luck,
Kevin
Ethan Smith
877 PointsEthan Smith
877 Pointsignore
and
java that aint suppose to be there