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 trial

Java

Some weird error round here in Java

package com.teamtreehouse; import java.util.Date;

public class Treet {

private String mAauthor; private String mDescription; private Date mCreationDate;

public Treet ( String author, String description, Date creationDate) { mAuthor = author; mDescription = description; mCreationDate = creationDate;
}

@Override public String toString() { return "Treet: \"" + mDescription + "\" -@" + mAuthor; }

public String getAuthor() { return mAuthor; }

public String getDescription() { return mDescription; }

public Date getDate() { return mDate; }

public String[] getWords() { return mDescription.toLowerCase().split("[^\w#@']+"); }

}

// And second class is

import com.teamtreehouse.Treet; import java.util.Date;

public class Example {

public static void main (String[] args) { Treet treet = new Treet("Dino Sporer", "Want to be famous ? Simply tweet about Java and use the hashtag #treet. I'll use your treet in a new @treehouse course.", new Date(1421862896000L) ); System.out.printf("This is a new treet: %s %n", treet); System.out.printf("Words:"); for( String word : treet.getWords() ) { System.out.println(word); } } }

By the way, I got errors that said

./com/teamtreehouse/Treet.java:11: error: cannot find symbol
mAuthor = author;
^
symbol: variable mAuthor
location: class Treet
./com/teamtreehouse/Treet.java:18: error: cannot find symbol
return "Treet: \"" + mDescription + "\" -@" + mAuthor;
^
symbol: variable mAuthor
location: class Treet
./com/teamtreehouse/Treet.java:22: error: cannot find symbol
return mAuthor;
^
symbol: variable mAuthor
location: class Treet
./com/teamtreehouse/Treet.java:30: error: cannot find symbol
return mDate;
^
symbol: variable mDate
location: class Treet

HELP !