String myname="我爱慕课网";
String myhttp="www.imooc.com";
System.out.println(myname);
System.out.println(myhttp);
String myhttp="www.imooc.com";
System.out.println(myname);
System.out.println(myhttp);
2014-12-06
String myLove="我爱慕课网";
String myURL="www.imooc.com";
System.out.println(myLove);
System.out.println(myURL);
String myURL="www.imooc.com";
System.out.println(myLove);
System.out.println(myURL);
2014-12-06
public class HelloWorld{
public static void main(String[] args) {
String myLove="我爱慕课网";
String myURL="www.imooc.com";
System.out.println(myLove);
System.out.println(myURL);
}
}
public static void main(String[] args) {
String myLove="我爱慕课网";
String myURL="www.imooc.com";
System.out.println(myLove);
System.out.println(myURL);
}
}
2014-12-06
print()和println()的区别在于print会在同一行输出;而println()每次输出,下一次输出都会换一行,即在下一行输出
2014-12-05