嗅瑞香草紛藍
2006-10-31 09:00:39 UTC
課本光碟中的範例用Jcreator開啟
按run出現這個畫面
http://www.wretch.cc/album/show.php?i=venno&b=1&f=1138723153&p=29
請問這是怎麼回事??
程式:
public class CH02_02
{
public static void main(String args[])
{ //宣告變數
String myStringA = "第一個字串";
String myStringB = "第二個字串";
String myStringC = "會串聯在一起";
int myIntA = 3;
boolean myBoolean = true;
//螢幕輸出
System.out.print("[JAVA基本輸出練習]\n");
System.out.println("「真」的英文是" + myBoolean);
System.out.println(myStringA + myStringB);
System.out.println(myStringC);
System.out.println("1 + 2 = " + myIntA);
System.out.println("5 - 3 = " + (5 - myIntA));
}
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.104.83.120
按run出現這個畫面
http://www.wretch.cc/album/show.php?i=venno&b=1&f=1138723153&p=29
請問這是怎麼回事??
程式:
public class CH02_02
{
public static void main(String args[])
{ //宣告變數
String myStringA = "第一個字串";
String myStringB = "第二個字串";
String myStringC = "會串聯在一起";
int myIntA = 3;
boolean myBoolean = true;
//螢幕輸出
System.out.print("[JAVA基本輸出練習]\n");
System.out.println("「真」的英文是" + myBoolean);
System.out.println(myStringA + myStringB);
System.out.println(myStringC);
System.out.println("1 + 2 = " + myIntA);
System.out.println("5 - 3 = " + (5 - myIntA));
}
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.104.83.120