วันพฤหัสบดีที่ 20 กันยายน พ.ศ. 2550

week8

string
เป็นการประกาศค่าตัวแปรออกมาเป็นตัวอักษร
การกำหนดให้ String เป็นตัวแปร
โดย String ชื่อตัวแปร = "ข้อความที่ต้องการ"
เช่นString x = "bye"
วิธีนำตัวแปรมาใช้ก็ใช้
System.out.print(ตัวแปร);
ถ้าตามดังเงื่อนไขข้างบนจะได้ว่า
System.out.print(x);

1 ความคิดเห็น:

ไม่ระบุชื่อ กล่าวว่า...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Câmera Digital, I hope you enjoy. The address is http://camera-fotografica-digital.blogspot.com. A hug.