<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>2 - Quản lý học sinh by Nguyễn Lê Trần Phú</title>
      <link>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7</link>
      <description>Được tạo ra bằng sự may mắn</description>
      <language>en-us</language>
      <pubDate>2021-09-25 00:17:25 UTC</pubDate>
      <lastBuildDate>2021-10-16 07:47:34 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/png/1f40e.png</url>
      </image>
      <item>
         <title>Phân công</title>
         <author>tranphunguyenle30</author>
         <link>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803468806</link>
         <description><![CDATA[<div>1. Lực<br>2.Nam<br>3.Phú<br>4.Tài<br>5.Dung</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-10-09 00:26:56 UTC</pubDate>
         <guid>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803468806</guid>
      </item>
      <item>
         <title>Câu 3:</title>
         <author>tranphunguyenle30</author>
         <link>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803476574</link>
         <description><![CDATA[<div>Cấu trúc vong lặp for:<br>for (khởi tạo biến, điều kiện vòng lặp, tăng giảm biến){<br>&nbsp; &nbsp; &nbsp; //các câu lệnh<br>}<br>Ví dụ:<br>for(int i = 0; i&lt;n; i++){<br>&nbsp; &nbsp; &nbsp;if(htenhocsinh.equalsIgnoreCase("NVA")){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Diem toan: " + diemtoan);<br>}<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-10-09 00:37:23 UTC</pubDate>
         <guid>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803476574</guid>
      </item>
      <item>
         <title>1.Câu điều kiện if</title>
         <author>tanluc</author>
         <link>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803479650</link>
         <description><![CDATA[<div>+ if đơn giản<br>Khối lệnh sau if được thực thi nếu giá trị của điều kiện là <strong>True</strong><br>- if (condition) {<br>//thi hanh neu dieu kien conditrion la true<br>}<br>VD :<br>int diemtoan = 10;<br>if (diemtoan &gt;= 8)<br>{<br>System.out.println("Dat loai tot");<br>}<br>+ if lồng nhau<br>VD :<br>int diemtoan =10;<br>if (diemtoan &gt;= 8)<br>{<br>System.out.println("dat loai tot");<br>}<br>if (diemtoan &lt;8)<br>{<br>System.out.println("Dat loai kha");<br>}<br>+ if.......else<br> Nếu giá trị điều kiện là <strong>True </strong>thì chỉ có khối lệnh sau if sẽ được thực hiện, nếu là <strong>False </strong>thì chỉ có khối lệnh sau else được thực hiện.<br>-if (condition){<br>// code<br>} else {<br>//code<br>}<br>VD:<br>int diemtoan =10;<br>if (diemtoan &gt;=8)<br>{<br>System.out.println("dat loai tot");<br>} else {<br>System.out.println(" dat loai kha");<br>}<br>+ if....else if<br>Nếu giá trị điều kiện if là <strong>True </strong>thì chỉ có khối lệnh sau if sẽ được thực hiện. Nếu giá trị điều kiện if else nào là <strong>True </strong>thì chỉ có khối lệnh sau else if đó sẽ được thực hiện... Nếu tất cả điều kiện của if và else if là <strong>False </strong>thì chỉ có khối lệnh sau else sẽ được thực hiện.<br>VD:<br><br>
</div><pre>int diemtoan = 6;

if (diemtoan &lt; 5) {
    System.<em>out</em>.println("Tạch!");
} else if (diemtoan &gt;= 5 &amp;&amp; diemtoan &lt; 6) {
    System.<em>out</em>.println("Xếp loại trung binh");
} else if (diemtoan &gt;= 6 &amp;&amp; diemtoan &lt; 7) {
    System.<em>out</em>.println("Xếp loại kha");
} else if (diemtoan &gt;= 8 &amp;&amp; diemtoan &lt; 10) {
    System.<em>out</em>.println("Xếp loại tot");
} else {
    System.<em>out</em>.println("Giá trị không hợp lệ!");
}</pre>]]></description>
         <enclosure url="" />
         <pubDate>2021-10-09 00:41:38 UTC</pubDate>
         <guid>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803479650</guid>
      </item>
      <item>
         <title>Câu 2 : Cấu trúc Switch Case trong java </title>
         <author>namvu0964</author>
         <link>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803484171</link>
         <description><![CDATA[<div>Cú Pháp:&nbsp;<br>Switch(bieu_thuc) {<br>case gia_tri_1;<br>&nbsp; &nbsp; &nbsp; //khối&nbsp; lệnh 1 &nbsp;<br>&nbsp; &nbsp; &nbsp; break; //tuychon&nbsp;<br>case gia_tri_2:&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // Khối lệnh 2</div><div>&nbsp; &nbsp; break;&nbsp; //tùy chọn</div><div>case<strong> </strong>gia_tri_n:&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // Khối lệnh n</div><div>&nbsp; &nbsp; break;&nbsp; //tùy chọn&nbsp; &nbsp;&nbsp;</div><div>default:&nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; // Khối lệnh này được thực thi&nbsp;</div><div>&nbsp; &nbsp; // nếu tất cả các điều kiện trên không thỏa mãn&nbsp;</div><div>}&nbsp; &nbsp;<br>Ví dụ :1<br>int sothutu = 1;&nbsp;<br>Switch(sothutu){<br>case 1;<br>&nbsp; &nbsp;System.out.println("1");<br>&nbsp; &nbsp; break;<br>case 2;&nbsp;<br>&nbsp; &nbsp; System.out,println("2")<br>&nbsp; &nbsp; &nbsp;break;<br>case n;<br>&nbsp; &nbsp; &nbsp; System.out.println("n")<br>&nbsp; &nbsp; &nbsp; &nbsp;break;<br>default:<br>&nbsp; &nbsp; System.out.println("not in 1, 2 or n ");<br>&nbsp; &nbsp; &nbsp;break;<br>}<br>ví dụ 2:&nbsp;<br><br><br><br>
</div><pre> public static void main(String[] args){
        Scanner sc = new Scanner(System.<em>in</em>);
            int namsinh = 2004;
            switch ( namsinh ) {
                case 2006:
                System.<em>out</em>.println("Đây là hoc sinh Tran Thi B");
                break;
                case 2004:
                System.<em>out</em>.println("đây la hoc sinh Nguyen Van A");
                break;
                case 2005:
                System.<em>out</em>.println("Đây là hoc sinh Lê Quang D ");
                break;
                default:
                    System.<em>out</em>.println("không trong năm sinh  2004 , 2005 or 2006");
                    break;
        }
    }
}</pre><div>
<br><br><br><br><br><br><br><br>
</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-10-09 00:47:42 UTC</pubDate>
         <guid>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803484171</guid>
      </item>
      <item>
         <title>Câu 5: Break, continue.</title>
         <author>lethithuydung142002</author>
         <link>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803485811</link>
         <description><![CDATA[<div>- Từ khóa break được sử dụng để dừng toàn bộ vòng lặp. Từ khóa break phải được sử dụng bên trong bất kỳ vòng lặp nào hoặc một lệnh switch.&nbsp; Từ khóa break sẽ dừng sự thực thi của vòng lặp trong cùng và bắt đầu thực thi dòng code tiếp theo sau khối đó.<br>Cú pháp:<br>break;<br>Ví dụ:<br>public static void main(String[] args) {</div><div>&nbsp; &nbsp; &nbsp; int i, sum = 0;</div><div>&nbsp; &nbsp; Scanner scanner = new Scanner(System.in);&nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp;do {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Nhập vào số:");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; i = scanner.nextInt();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (i &lt; 0) { break;&nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; sum += i;</div><div>&nbsp; &nbsp; } while (i &gt;= 0);&nbsp; &nbsp; // i còn lớn hơn hoặc bằng 0 thì còn tiếp tục</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.println("Kết quả = " + sum);&nbsp; }</div><div>- Từ khóa continue trong java được sử dụng để tiếp tục vòng lặp tại điều kiện đã được xác định, với điều kiện đó khối lệnh phía sau từ khóa continue sẽ không được thực thi. Đối với vòng lặp bên trong một vòng lặp khác, continue chỉ có tác dụng với vọng lặp bên trong đó.<br>Cú pháp:<br>continue;<br>Ví dụ:<br>public static void main(String[] args) {<br>		 int count;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (count = 0; count &lt;= 5; count++) {<br>		 System.out.println("Không đạt " + count);<br>	&nbsp; &nbsp; &nbsp;if (count &lt;5) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;continue;<br>		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>		&nbsp; &nbsp; &nbsp; &nbsp;System.out.println("Đạt&nbsp; }}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-10-09 00:49:51 UTC</pubDate>
         <guid>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803485811</guid>
      </item>
      <item>
         <title>4. Cấu trúc lặp while, do while</title>
         <author>dinhvantai030802</author>
         <link>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803495652</link>
         <description><![CDATA[<div>
<strong><br>1. Cú pháp, cách hoạt động và công dụng vòng lặp do - while.<br>1. while<br>-Vòng lặp while trong java</strong> được sử dụng để lặp một phần của chương trình một vài lần. Nếu số lần lặp không được xác định trước thì vòng lặp lặp while được khuyến khích sử dụng trong trường hợp này.</div><div>Cú pháp:<br><strong>while</strong>(condition) { &nbsp;</div><div>&nbsp; &nbsp; // Khối lệnh được lặp lại cho đến khi condition = False</div><div>} &nbsp;</div><div>
<strong>VD:<br></strong>int i = 8;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; w<strong>hile</strong> (i &gt; 0) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( i &gt; 8){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Dat loai tot");<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(i &gt;=7){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.println("Dat loai kha");<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Dat loai tb");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp;}<br>}</div><div>2: do...while<strong><br>Công dụng.<br></strong><br>
</div><div>- Vòng lặp do - while là cấu trúc điều khiển lặp được dùng để thực hiện một lệnh hay một khối lệnh với số lần lặp chưa xác định trước nhưng khác với while, cấu trúc do - while chỉ kiểm tra điều kiện lặp sau khi thân vòng lặp đã được thực hiện một lần.<br><br>
</div><div>
<strong><br>Cú pháp.<br></strong><br>
</div><pre>do {
	// Các lệnh
} while (điều_kiện_lặp);
// Lệnh kế tiếp</pre><div>trong đó<br>- điều_kiện_lặp là biểu thức để xác định điều kiện lặp. Biểu thức này phải trả về giá trị là đúng (true) hoặc sai (false).<br>- Các lệnh nằm trong cặp dấu {} là thân của vòng lặp.</div><div>
<strong>Cách hoạt động.<br>- </strong>Đầu tiên, các lệnh nằm trong thân của vòng lặp do - while sẽ được thực hiện. Sau khi thực hiện xong các lệnh này thì biểu thức điều_kiện_lặp sẽ được kiểm tra: nếu biểu thức này có giá trị đúng (true) thì tiếp tục quay lại thực hiện các lệnh trong thân vòng lặp. Nếu đến một lúc nào đó biểu thức điều_kiện_lặp có giá trị sai (false) thì các lệnh trong thân vòng lặp sẽ không được thực hiện và vòng lặp do - while sẽ kết thúc.<br>VD:<br><strong>int</strong> a, s3=0;</div><div>&nbsp; &nbsp; <strong>float</strong> s11=0;</div><div>&nbsp; &nbsp; <strong>int</strong> i=1, dem11=0;</div><div>&nbsp; &nbsp; <strong>do</strong>{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(" Nhap vao so nguyen thu",i);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; i++;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <strong>if</strong>(a%3==0){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s3=s3+a*a;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <strong>if</strong> (a%11==0){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s11=s11+a;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dem11++;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }<strong>while</strong>(a%7!=0 || i&gt;1000);</div><div>&nbsp; &nbsp; System.out.println("\n Tong binh phuong cac so chia het cho 3: ",s3);</div><div>&nbsp; &nbsp; <strong>if</strong> (dem11==0){</div><div>&nbsp; &nbsp; &nbsp; &nbsp;System.out.println(" Khong co so nao chia het cho 11 de tinh trung binh cong");</div><div>&nbsp; &nbsp; }<strong>else</strong>{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Trung binh cong cac so chia het chi 11",s11/dem11);</div><div>&nbsp; &nbsp; }</div><div><br></div><div>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-10-09 01:02:18 UTC</pubDate>
         <guid>https://padlet.com/tranphunguyenle30/oz4uuddmqixadvy7/wish/1803495652</guid>
      </item>
   </channel>
</rss>
