class TestStringExpander

I keep getting this error whenever I go to turn in my assignment can you help me understand what I’m doing wrong? It seems to run fine in netbeans its just when I got to submit it.

TextMsgExpander.java:6: error: class TestStringExpander is public, should be declared in a file named TestStringExpander.java

public class TestStringExpander {

^

1 error

 
"Looking for a Similar Assignment? Order now and Get 10% Discount! Use Code "Newclient"