<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Nhóm 4 - Ham Học Hỏi - Java chiều 2/10 by Trung Đức Trọng</title>
      <link>https://padlet.com/trungductrongg/15d5m06vu3co1wov</link>
      <description>Được tạo bằng một cơn sáng tạo không ngừng</description>
      <language>en-us</language>
      <pubDate>2021-10-02 06:44:14 UTC</pubDate>
      <lastBuildDate>2025-05-11 14:50:46 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Phân công nhiệm vụ Java chiều 2/10     -                Đề Tài: Quản Lí Sinh Viên IT</title>
         <author>ptht101002</author>
         <link>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785567063</link>
         <description><![CDATA[<div><br><strong>Câu 1:</strong> Thắm<br><strong>Câu 2:</strong> Lan<br><strong>Câu 3:</strong> Trọng<br><strong>Câu 4:</strong> Nhung<br><strong>Câu 5:</strong> Trọng (do bạn Tuyên đi tiêm vaccine)</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1367758727/3da8ca953c603af87a678a8e772cd317/phan_chia_nhiem_vu_cho_thanh_vien.png" />
         <pubDate>2021-10-02 06:47:56 UTC</pubDate>
         <guid>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785567063</guid>
      </item>
      <item>
         <title>Câu 3: Cách ép kiểu trong Java</title>
         <author>trungductrongg</author>
         <link>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785569045</link>
         <description><![CDATA[<div><strong>Ép kiểu trong kiểu dữ liệu nguyên thủy được chia ra làm 2 loại:</strong><br><br></div><ul><li><strong>Chuyển đổi kiểu ngầm định (implicit)&nbsp; &nbsp; &nbsp;</strong></li></ul><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Ví Dụ:</strong><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public class Quanli{<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public static void main(String []args){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int a = 5;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; long b = a;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(b);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><ul><li><strong>Chuyển đổi kiểu tường minh (explicit)</strong></li></ul><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>Ví Dụ:&nbsp; &nbsp; &nbsp;</strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>&nbsp;&nbsp;</strong></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;public class Danhsach{<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public static void main(String []args){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; long a = 6;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int b = (int) a;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(a);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div><br><br></div>]]></description>
         <enclosure url="https://drive.google.com/uc?id=1-xNROZmpU4_d8DumvGZuWjhBKG9nRB0N" />
         <pubDate>2021-10-02 06:51:25 UTC</pubDate>
         <guid>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785569045</guid>
      </item>
      <item>
         <title>Câu 1: Trong Java có những kiểu dữ liệu. Cho ví dụ</title>
         <author>ptht101002</author>
         <link>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785569483</link>
         <description><![CDATA[<div>- Boolean<br>- Char<br>- Byte<br>- Short<br>- Int<br>- Long<br>- Float<br>- Double<br><strong>* Ví dụ:<br></strong>-&nbsp; int n = 10;<br>- char ch = 'a';<br>- boolean a = true;<br>- byte niit = 100;<br>- long a = 100L;<br>- float value = 2.5f;<br>- double a = 2.5d;<br>- short t = 50;</div><div><br><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1367758727/ed585d7408dc9221bebc55232395dca9/cac_kieu_du_lieu_trong_java.png" />
         <pubDate>2021-10-02 06:52:10 UTC</pubDate>
         <guid>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785569483</guid>
      </item>
      <item>
         <title>Câu 5: Nhập xuất dữ liệu trong Java</title>
         <author>trungductrongg</author>
         <link>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785572608</link>
         <description><![CDATA[<div><strong>Scanner</strong> là một lớp trong thư viện Java.util giúp bạn nhập và lưu data từ bàn phím. Ngoài scanner, còn có nhiều lớp khác nữa, nhưng đây là lớp được sử dụng nhiều nhất.<br><strong><br>Cú pháp nhập<br></strong><br></div><div>Để sử dụng bạn khai báo một đối tượng Scanner có tên tùy ý.<br><br></div><div>Scanner <strong>nhom4</strong> = new Scanner(System.in);<br><br></div><div>nhom4.<strong>nextInt()</strong>; // Gọi hàm nhập số nguyên. Các hàm khác cú pháp tương tự<br><br><strong>Xuất dữ liệu:<br><br></strong>System.out.println(“Nhóm 4 - Ham Học Hỏi” + biến);<br><br><strong>VÍ DỤ:</strong><br>&nbsp; &nbsp; Scanner nhom4= new Scanner(System.in);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //khai bao doi tuong ip thuoc lop Scanner<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; System.out.println("Nhap ten cua ban: ");<br>&nbsp; &nbsp; name = nhom4.nextLine();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Su dung nextLine nhap du lieu kieu String<br><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1367758494/d81d3d846f60907b75af03e9b4cfeeeb/Untitled_2.jpg" />
         <pubDate>2021-10-02 06:57:50 UTC</pubDate>
         <guid>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785572608</guid>
      </item>
      <item>
         <title>Câu 2 : Phân biệt Biến và Hằng trong Java</title>
         <author>3120220099</author>
         <link>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785577539</link>
         <description><![CDATA[<div>Trong Java&nbsp; Biến có thể thay đổi còn Hằng thì không&nbsp; thể thay đổi<br><br><strong>Ví dụ: </strong><br>Biến:&nbsp;&nbsp;byte age;&nbsp; // khai báo tuổi sv</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  String name ;&nbsp; // khai báo tên sv<br><br>Hằng:&nbsp; final byte nam_hoc_toi_da = 6;<br><br><strong>Lưu ý khi đặt tên:&nbsp;</strong></div><ul><li>Tên không được chứa bất kỳ khoảng trắng nào.</li><li>Tên không nên bắt đầu bằng các ký tự đặc biệt như ký hiệu &amp;, $(đô la), _ (gạch dưới).</li></ul><div><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1367762665/aee68c7e6b6b1b1c77b0147ea43716c4/image.png" />
         <pubDate>2021-10-02 07:06:07 UTC</pubDate>
         <guid>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785577539</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>3120220120</author>
         <link>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785578778</link>
         <description><![CDATA[<div><br><strong>TRẢ LỜI:<br><br>Toán tử là gì?</strong></div><div><strong>Toán tử</strong> (Operator) là các ký tự đặc biệt được quy ước để thực hiện một hành động nào đó trong lập trình. Trong <strong>Java </strong>có nhiều loại toán tử.<br><br></div><div><strong>Ví dụ:</strong> +, -, *, /<br><br></div><div>1. Toán tử số học<br><strong>*Ví dụ:</strong> Giả sử chúng ta có biến số nguyên a = 10 và b = 20<br>- Cộng là trả về giá trị là tổng của hai toán hạng : a + b sẽ là 30<br><br>2. Toán tử Bit<br><strong>*Ví dụ: </strong>~ : Phủ định NOT<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Trả về giá trị phủ định của một bít.<br><br>3. Toán tử quan hệ<br><strong>*Ví dụ: </strong>== : So sánh bằng Toán tử này kiểm tra sự tương đương của hai toán hạng<br><br>4. Toán tử logic<br><strong>*Ví dụ:</strong> &amp;&amp; : Toán tử và (AND)<br>Trả về một giá trị “Đúng” (True) nếu chỉ khi cả hai toán tử có giá trị “True”<br><br>5. Toán tử điều kiện<br><strong>*Ví dụ: &nbsp; Biến = &lt;điều kiện&gt; ? &lt;giá trị nếu đúng&gt; : &lt;giá trị nếu sai&gt;</strong></div><ul><li><strong>Biểu thức 1:</strong> Biểu thức logic. Trả trả về giá trị True hoặc False</li><li><strong>Biểu thức 2:</strong> Là giá trị trả về nếu xác định là True</li><li><strong>Biểu thức 3:</strong> Là giá trị trả về nếu xác định là False</li></ul><div><br><strong>public</strong> <strong>class</strong> QuanLi {<br>&nbsp; &nbsp; <strong>public</strong> <strong>static</strong> <strong>void</strong> <strong>main</strong>(String[] args) {<br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>int</strong> a = 1; <br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>int</strong> b = 2;<br>&nbsp; &nbsp; &nbsp; &nbsp; <strong>int</strong> c = a&lt;b ? 3 : 4;<br>&nbsp; &nbsp; &nbsp; &nbsp; System.<strong>out</strong>.println(c);<br>&nbsp; &nbsp; }<br>}</div><div>=&gt; Kết quả trả về là 3<br><br>6. Toán tử gán<br><strong>*Ví dụ:</strong> <strong>int</strong> var = 20;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>int</strong> p,q,r,s;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p=q=r=s=var;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1367762454/95cb6c4e266ce951e2d272488407f0d8/toan_tu_trong_java.png" />
         <pubDate>2021-10-02 07:08:22 UTC</pubDate>
         <guid>https://padlet.com/trungductrongg/15d5m06vu3co1wov/wish/1785578778</guid>
      </item>
   </channel>
</rss>
