Android Build a Simple Android App with Java Improving Our Code Creating a New Class

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

I just wrote it like in my android studio where were no errors, can you help me?

PictureBook.java
public class PictureBook{
public String title{}
;}

1 Answer

Steven Parker
Steven Parker
174,024 Points

What if you leave off the braces after "title"?