<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>NHÓM 6 - BDHNT-JAVA 29/09/2021(QUẢN LÝ COFFE) by Thai Thien</title>
      <link>https://padlet.com/vanthiendiendien/gtbv944xphnxmyd9</link>
      <description>Được tạo với nhiều vận may trời phú</description>
      <language>en-us</language>
      <pubDate>2021-09-29 06:21:44 UTC</pubDate>
      <lastBuildDate>2026-02-16 20:42:11 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>CÂU 1: Trong Java có những kiểu dữ liệu nào? cho ví dụ?</title>
         <author>vanthiendiendien</author>
         <link>https://padlet.com/vanthiendiendien/gtbv944xphnxmyd9/wish/1777075824</link>
         <description><![CDATA[<div><strong>CÁC KIỂU DỮ LIỆU LÀ</strong><br>Trong Java có 2 kiểu dữ liệu có sẵn: Primitive (kiểu dữ liệu gốc) và Non-primitive (kiểu dữ liệu đối tượng):<br><br>1)Primitive(kiểu dữ liệu gốc):</div><ul><li>Boolean</li><li>Char</li><li>Byte</li><li>Short</li><li>Int</li><li>Long</li><li>Float</li><li>Double</li></ul><div><br></div><div>2)Non-primitive(kiểu dữ liệu đối tượng):</div><ul><li>String</li><li>Array ...</li></ul><div><br><br><strong>VÍ DỤ VỀ VIỆC SỬ DỤNG CÁC KIỂU DỮ LIỆU TRONG HỆ THỐNG QUẢN LÝ COFFE:</strong></div><ul><li>Ta sử dụng kiểu dữ liệu int để khai báo cho giá các loại đồ uống&nbsp;</li></ul><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vd: int gianuoccam= 15000;</div><ul><li>Ta sử dụng kiểu dữ liệu Strinh để khai báo cho các biến là tên các loại nước uống</li></ul><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vd String a= "nuoccam";</div><ul><li>Ta sử dụng kiểu dữ liệu array để khai báo cho các biến là danh mục các loại nước có trong quán coffe</li></ul><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vd String[] cars = { "sua", "trasua", "nuocep", "coffe" };<br><br><br></div><div><br></div><div><br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-09-29 06:26:12 UTC</pubDate>
         <guid>https://padlet.com/vanthiendiendien/gtbv944xphnxmyd9/wish/1777075824</guid>
      </item>
      <item>
         <title>CÂU 2: Phân biệt biến và hằng trong java.Cho ví dụ minh họa.Cần lưu ý gì khi  đặt tên?</title>
         <author>huy503704</author>
         <link>https://padlet.com/vanthiendiendien/gtbv944xphnxmyd9/wish/1777083576</link>
         <description><![CDATA[<div>1,Phân biệt biến và hằng<br><strong>&nbsp;Giống nhau</strong>:Nó giúp hệ thống tạo ra các vùng nhớ để lưu giữ các giá trị trong ứng dụng<br> <strong>Khác nhau</strong>: Giá trị của biến có thể thay đổi còn giá trị của hằng thì không đổi.<br>2,Ví dụ:<br>biến: int a; string b;float c,int a=5...<br>hằng: &nbsp; final boolean male=true;final float PI=3.14;<br>3,Những lưu ý khi đặt tên</div><ul><li><strong>Quy tắc 1</strong>:Ký tự bắt đầu của biến phải là chữ cái, hoặc dấu gạch dưới"_", hoặc kí tự đô ka"$".VD:int count; int Count;int&nbsp; _Count;int $Count;</li><li><strong>Quy tắc 2</strong>:Không được có khoảng trắng giữa các ký tự của&nbsp; biến.Ví dụ:int this is count; là sai.Nếu muốn tên biến được tách biệt rõ ràng từng chữ thì có thể viết:int this_is_Count;</li><li><strong>Quy tắc 3</strong>:Không được chứa ký tự đặc biệt bên trong tên biến như !@#%<em>^&amp;</em><strong><em>*.</em></strong><em>Vi dụ:</em>int c@unt; int count#; int<strong> </strong>count*count; là sai.</li><li><strong>Quy tắc 4</strong>:Không được đặt tên biến trùng với Keyword.Các keyword của Java như abstract,continue,for,new,switch,...Ví dụ: boolean continue = true;long class;int final là sai</li></ul><div>4, Ví dụ về việc sử dụng biến và hằng trong hệ thống quản lý cafe:<br>Biến:int so_luong;<br>&nbsp; &nbsp; &nbsp; &nbsp; long gia_tien;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; String Ma_do_uong;<br>&nbsp; &nbsp; &nbsp; &nbsp; String Ma_do_an;...<br>Hằng:&nbsp; final boolean chuyen_ban =false;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; final boolean dat_ban =true;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-09-29 06:29:57 UTC</pubDate>
         <guid>https://padlet.com/vanthiendiendien/gtbv944xphnxmyd9/wish/1777083576</guid>
      </item>
      <item>
         <title>CÂU 4: Trong java có những loại toán tử nào? Cho ví dụ minh họa.</title>
         <author>trannganttn2001</author>
         <link>https://padlet.com/vanthiendiendien/gtbv944xphnxmyd9/wish/1777089732</link>
         <description><![CDATA[<div>NHỮNG LOẠI TOÁN TỬ TRONG JAVA:</div><ul><li>Toán tử số học(cộng, trừ,nhân,chia,phép lấy modul, giảm dần, tăng dần, cộng và gán giá trị,...)</li><li>Toán tử bit(~,&amp;,|,^,&lt;&lt;,&gt;&gt;)</li><li>Toán tử quan hệ(==,&gt;,&lt;,&gt;=,&lt;=,!=)</li><li>Toán tử logic(AND,OR,XOR,NOT)</li><li>Toán tử điều kiện</li><li>Toán tử gán(=,*=,/=,+=,-=)</li></ul><div>VÍ DỤ VỀ VIỆC SỬ DỤNG CÁC LOẠI TOÁN TỬ TRONG HỆ THỐNG QUẢN LÝ COFFE</div><ul><li>Toán tử gán:</li></ul><div>         int caffe=20000;&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int sting, sprite;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sting= sprite=cafe;</div><div><br></div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-09-29 06:32:55 UTC</pubDate>
         <guid>https://padlet.com/vanthiendiendien/gtbv944xphnxmyd9/wish/1777089732</guid>
      </item>
      <item>
         <title>CÂU 3 : Có  bao nhiêu cách ép kiểu trong Java ? cho ví dụ minh họa </title>
         <author>hoaibao2129</author>
         <link>https://padlet.com/vanthiendiendien/gtbv944xphnxmyd9/wish/1777092955</link>
         <description><![CDATA[<div>TRONG JAVA CÓ HAI CÁCH ÉP KIỂU ĐÓ LÀ :</div><ul><li>CHUYỂN ĐỔI KIỂU NGẦM ĐỊNH (IMPLICIT)</li><li>CHUYỂN ĐỔI KIỂU TƯỜNG MINH (EXPLICIT)</li></ul><div><br><strong>CHUYỂN ĐỔI KIỂU NGẦM ĐỊNH (IMPLICIT)<br>VIỆC CHUYỂN ĐỔI SẼ TỰ THỰC HIỆN BỞI COMPILER VÀ CHÚNG TA KHÔNG CẦN LÀM GÌ , VIỆC CHUYỂN ĐỔI NÀY DÀNH CHO KIỂU DỮ LIỆU NHỎ SANG <br>KIỂU DỮ LIỆU LỚN</strong><br><br>VÍ DỤ <br><br>public class TEST {<br><br>&nbsp; &nbsp; public static void main(String[] args) {<br>&nbsp; &nbsp; &nbsp; &nbsp; int a = 5 ;<br>&nbsp; &nbsp; &nbsp; &nbsp; long b = a;<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(b);<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;<br>}<br><br><br><strong>CHUYỂN ĐỔI KIỂU TƯỜNG MINH (EXPLICIT)<br>NGƯỢC LẠI VỚI CHUYỂN ĐỔI NGẦM ĐỊNH , CHUYỂN ĐỔI TƯỜNG MINH LÀ CHUYỂN ĐỔI TỪ KIỂU DỮ LIỆU LỚN HƠN SANG KIỂU <br>DỮ LIỆU NHỎ HƠN</strong><br><br>VÍ DỤ<br><br>public class TEST {<br><br>&nbsp; &nbsp; public static void main(String[] args) {<br>&nbsp; &nbsp; &nbsp; &nbsp; long a = 5 ;<br>&nbsp; &nbsp; &nbsp; &nbsp; int b = (int)a;<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(a);<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-09-29 06:34:34 UTC</pubDate>
         <guid>https://padlet.com/vanthiendiendien/gtbv944xphnxmyd9/wish/1777092955</guid>
      </item>
      <item>
         <title>CÂU 5 : Nêu cách nhập xuất dữ liệu trong java?VD</title>
         <author>sukioni2001</author>
         <link>https://padlet.com/vanthiendiendien/gtbv944xphnxmyd9/wish/1777113938</link>
         <description><![CDATA[<div><strong>Có 3 cách để tiến hành nhập liệu từ bàn phím:</strong><br>- Cách đầu tiên là sử dụng lớp <strong>BufferReader</strong><br>- Cách 2 là sử dụng <strong>JOptionPane</strong><br>- Cách 3 là sử dụng lớp <strong>Scanner ( hay dùng)<br><br></strong><br><strong>3. Dùng lớp Scanner:</strong></div><div>Scanner là một lớp mới có(từ java 5 hay 6, những phiên bản 3 thì chưa có).</div><div>Scanner hơn hẳn những lớp trước là vì nó phân loại đc dữ liệu mà người dùng nhập vào cho nó: có thể đọc kiểu int hay float, double,..<br>ví dụ<br><br>import java.util.Scanner;<br><br>public class Cafe Dame Me<br>{<br>	public static void main (String[] args)<br>	{<br>		Scanner sc = new Sanner(System.in);<br>		System.out.println("Nhap vao ho va ten:");<br>		String HoVaTen = sc.nextLine();<br><br>		System.out.println("Nhap loai do uong");<br>		String DoUong = sc.nextLine();<br><br>		System.out.println("Ho Va Ten: "+ HoVaTen);<br>		System.out.println("Loai Do Uong: "+ DoUong);<br>	}<br>}<br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-09-29 06:44:51 UTC</pubDate>
         <guid>https://padlet.com/vanthiendiendien/gtbv944xphnxmyd9/wish/1777113938</guid>
      </item>
   </channel>
</rss>
