誰(shuí)能幫我看看是哪里錯(cuò)了嗎?
public class HelloWorld{
? ? public static void main(String[] args) {
project1 = "我愛(ài)慕課網(wǎng)";
project2 = "idcbgp.cn";
System.out.println("project1");
System.out.println("project2");
}
}
public class HelloWorld{
? ? public static void main(String[] args) {
project1 = "我愛(ài)慕課網(wǎng)";
project2 = "idcbgp.cn";
System.out.println("project1");
System.out.println("project2");
}
}
2018-09-08
舉報(bào)
2018-09-11
兩個(gè)project變量沒(méi)有變量類(lèi)型,然后在用println輸出變量時(shí)不用加引號(hào)
2018-09-09
String project1="我愛(ài)慕課網(wǎng)";
String project2="idcbgp.cn";
System.out.println(project1+project2);
也可以
2018-09-09
String project1="我愛(ài)慕課網(wǎng)";
String project2="idcbgp.cn";
System.out.println(project1);
System.out.println(project2);
2018-09-08
string