System.out.println();不能打印两个变量吗?
public class HelloWorld{
public static void main(String[] args) {
String mySiteName = "我爱慕课网";
String mySiteUrl ="www.imooc.com";
System.out.println(mySiteName,mySiteUrl);
//System.out.println(mySiteUrl);
}
}
HelloWorld.java:5: error: no suitable method found for println(String,String)
System.out.println(mySiteName,mySiteUrl);