编译有错误,求教!!!!
public class MyAppp
{
public static void main(String[] args)
{
String str1 = new String("this is a string");
String str2 = new String("this is string");
if (str1.equalTo(str2))
{
System.out.println("str1和str2相等");
}
else
{
System.out.println("str1和str2不相等");
}
if (str1.StartsWith("this"))
{
System.out.println("str1以'this'开头");
}
}
}
编译有错误,请高手们给我看看,是什么错误?