<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>LU 1  by </title>
      <link>https://padlet.com/emiriaj/w2h1thgkslos</link>
      <description>LU 1 Basic Java Programming Language</description>
      <language>en-us</language>
      <pubDate>2017-09-13 05:19:38 UTC</pubDate>
      <lastBuildDate>2024-12-02 22:49:37 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Group 22</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187432505</link>
         <description><![CDATA[<div>Q~If you encounter the following DOS prompt error how should you rectify it?<br>'javac' is not recognized as an internal or external command, operable program or batch file.<br>Solution :<br>1.<a href="https://www.youtube.com/watch?v=jerx_Ob-qRY">https://www.youtube.com/watch?v=jerx_Ob-qRY</a><br>2.<a href="http://www.java67.com/2015/07/javac-is-not-recognized-as-internal-or-external-command-program-batch-file.html">http://www.java67.com/2015/07/javac-is-not-recognized-as-internal-or-external-command-program-batch-file.html</a><br><br></div><div>Javac is the executable for compiling java applications. &nbsp; When compiling a java program from command line, this is the most common issue people face.&nbsp; Let’s see how we can fix this issue.<br><br></div><ol><li>&nbsp;First thing we need to compile java programs is to have JDK(Java development Kit) installed on your computer.&nbsp; If you are not sure whether you have already installed it or not, you can verify from appwiz.cpl.(More details here –&nbsp; <a href="http://www.technlg.net/windows/how-do-i-know-if-java-is-installed/">How do I check if Java is installed on my system</a>)</li></ol><div>Please note that having JRE is not enough to develop java applications. JRE only helps to run already built applications, we need JDK to compile Java code.&nbsp;<br><br></div><div>If java is installed, then you need to check if PATH environment variable points to the java executables directory.</div><ul><li>Open command prompt</li><li>Run ‘set path’. This will print the current value of path environment variable. You can see the list of all the directories added. Check if&nbsp; Java sdk path is added or not. If it’s added you should be able to see something like below.&nbsp;</li></ul><div>&nbsp;c:\&gt;set path<br>Path=C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Quarantine\;C:\Program Files\Perforce;C:\Program Files\Microsoft Network Monitor 3\;<strong>c:\Program Files\Java\jdk1.7.0_17\bin</strong>&nbsp;<br><br></div><ul><li>If you don’t find JDK path you can add now. Please note that the path you need to add on your system would vary based on the SDK version you installed and also the location of the installation. Check the folder “C:\Program Files\java” &nbsp; and&nbsp; “c:\Program Files (x86)\java” to find the exact path.</li><li>If you already have PATH set with the java location, check one more time if you have added path till the bin folder. So adding c:\Program Files\Java\jdk1.7.0_17 is not correct. You need to add c:\Program Files\Java\jdk1.7.0_17\bin.</li><li>You can modify PATH variable from command prompt or from GUI. For command line steps, please see&nbsp; – <a href="https://www.windows-commandline.com/set-path-command-line/">Set path from windows command prompt</a></li><li>To modify PATH using GUI you can follow the steps below.&nbsp;</li></ul><div><br>&nbsp;<strong>How to set JDK path</strong>&nbsp;<br>1.Open System properties&nbsp;<br>2.Go to Advanced tab<br>3.Click ‘Environment variables’&nbsp;<br>4. Under ‘System Variables’ scroll down to find PATH. Edit the entry and add JDK path.<br>5.Click OK and close the windows.&nbsp;<br><br> Now open new command prompt and run ‘set path’, you can see that JDK path is added.&nbsp; Note that if you run the command from a window which was opened before you modified the PATH variable, it would not print updated path. Even for compiling java programs, you need to open a new command window after setting PATH.&nbsp;<br>&nbsp;</div><div>Group member :<br>1.Tan Jia Er&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 58069<br>2.Chang Khoon Lim&nbsp; 55643&nbsp;<br>3.Tang Jie Jie&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 58097<br>4.Koh Zhe Wei&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 56321 &nbsp;<br>5.Kang Zhi Zheng&nbsp; &nbsp; &nbsp; 56268&nbsp;</div>]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/201998254/417186f0b17d35f46ee2811d0c23edab/Capture.png" />
         <pubDate>2017-09-14 05:44:13 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187432505</guid>
      </item>
      <item>
         <title>Group 23</title>
         <author>583241</author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187433610</link>
         <description><![CDATA[<div>Question: Identify and fix the errors in the following code:<br>public class welcome{<br>&nbsp;public void main(Sting[] arg){<br>&nbsp;System.out.println('What can I say except');<br>&nbsp;System.out.print('You're welcome?');<br>&nbsp;}<br>}<br>Answer:<br>&nbsp; &nbsp;<figure class="attachment attachment--preview" data-trix-attachment="{&quot;contentType&quot;:&quot;image&quot;,&quot;height&quot;:384,&quot;url&quot;:&quot;https://scontent.fkul4-1.fna.fbcdn.net/v/t34.0-12/21741616_1674126702607028_234221371_n.png?oh=eff2e76991f51e492e9bdf4dd90f921d&amp;oe=59BCEA82&quot;,&quot;width&quot;:216}" data-trix-content-type="image"><img src="https://scontent.fkul4-1.fna.fbcdn.net/v/t34.0-12/21741616_1674126702607028_234221371_n.png?oh=eff2e76991f51e492e9bdf4dd90f921d&amp;oe=59BCEA82" width="216" height="384"><figcaption class="attachment__caption"></figcaption></figure> &nbsp;<br>Group member&nbsp;<br>1. Chong Pei Swee 55715<br>2. Wong Mun Wai 58306<br>3. David Kee Yen Chee 55789<br>4. Yap Bing Wei 58324<br>5. Beh Juan Hooi 55586</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 05:53:43 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187433610</guid>
      </item>
      <item>
         <title>Group 15</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187434071</link>
         <description><![CDATA[<div>Question : Write a program to determine whether an integer i is even or odd.<br><br>import java.util.Scanner;//simple text scanner<br><br>class CheckEvenOdd //class name<br>{<br>  public static void main(String args[])<br>  {<br>    int i;<br>    System.out.println("Enter an Integer number:");<br><br>    //The input provided by user is stored in i<br>    Scanner input = new Scanner(System.in);<br>    i= input.nextInt();<br><br>    /* If number is divisible by 2 then it's an even number<br>     * else odd number*/<br>    if ( i % 2 == 0 )<br>        System.out.println("Number is even");<br>     else<br>        System.out.println("Entered number is odd");<br>  }<br>}<br><br>Group member:<br>1. Barnabas Lau 55582<br>2. Tiong Wei Yuan <br>58185<br>3. Wong Ha Luen 58293<br>4. Freddy Ling 59440<br>5. Teng Chin Hui 59957</div>]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/220875200/c23d2a272fd78e4d212f10a6fd5184b9/IMG_20170914_WA0011.jpg" />
         <pubDate>2017-09-14 05:57:44 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187434071</guid>
      </item>
      <item>
         <title>Group 21</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187434350</link>
         <description><![CDATA[<div>Question:<br>public class FixIt<br>{<br>	public void main(String[] args)<br>	{<br>		<br>		for (int i= 0;i&lt;10;i++);<br>		sum+=i;<br>		<br>			if(i&lt;j);<br>				System.out.println(i)<br>			else <br>				System.out.println(j);<br>			<br>			while (j&lt;10);<br>			{<br>				j++;<br>			};<br>			do {<br>				j++;<br>			}while(j&lt;10)<br>	}<br>}<br><br>Answer:<br>class FixIt<br>{<br>	public static void main(String args[])<br>	{<br>		int sum=0,j=0;<br>		<br>		for (int i= 0;i&lt;10;i++)<br>		{<br>			sum+=i;<br>		<br>			if(i&lt;j)<br>				System.out.println(i);<br>			else <br>				System.out.println(j);<br>			<br>			while (j&lt;10)<br>			{<br>				j++;<br>			}<br>			do {<br>				j++;<br>			}while(j&lt;10);<br>		}<br>	}<br>}<br><br>Member:<br>1. Phang Chow Ching 57634<br>2. Leong Hao Xian 56402<br>3. Wong Hong Fei 58294<br> 4. Lee Chia Wei 56369<br>5.Seah Choon Kai 57786<br><br>				</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 05:59:41 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187434350</guid>
      </item>
      <item>
         <title>Group 20</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187434832</link>
         <description><![CDATA[<div>Question: How do we force the <strong>else</strong> clause to match the first <strong>if</strong> clause in the following program snippet? Give a recommended program to rectify this problem.<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int i = 5;<br>	 int j = 6;<br>	 int k = 7;<br>	&nbsp;<br>	 if(i &gt; j)<br>	 	if (i &gt; k)<br>	 	System.out.println("I am here");<br>	 	else<br>	 	System.out.println("Or am I?");<br><br>Answer:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int i = 5;<br>	 int j = 6;<br>	 int k = 7;<br>	&nbsp;<br>	 if(i &lt; j)<br>	 	if (i &gt; k)<br>	 	System.out.println("I am here");<br>	 	else<br>	 	System.out.println("Or am I?");<br><br>Group Member:<br>1. Gan Poh Yin 59441<br>2. Neo Cindy 56924<br>3. Ho Siew Chee 56119<br>4. Ling Chia Chin 56461<br>5. Joyce Goh Chui Wen 56244<br>	 	&nbsp;<br>	 	&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:02:50 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187434832</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187435131</link>
         <description><![CDATA[Under ‘System Variables’ scroll down to find PATH. Edit the entry and add JDK path.]]></description>
         <pubDate>2017-09-14 06:05:11 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187435131</guid>
      </item>
      <item>
         <title>Group 18</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187435369</link>
         <description><![CDATA[<div>&nbsp;</div><div>What is wrong with the following program? Provide a recommendation program to fix the error.&nbsp;<br><br></div><div>Queston:<br>&nbsp;public class GotError{&nbsp;<br>&nbsp;public static void main(String[] args){<br>for ( int i=0; i&lt;10; i++);<br>system.out.println(i+4);<br>}<br>}<br><br>Answer:</div><div>public class GotError{&nbsp;<br>&nbsp;public static void main(String[] args){<br>for ( int i=0; i&lt;10; i++)<br>{<br>System.out.println (i+4);<br>}<br>}&nbsp;<br>}<br><br>Output:<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br><br>explanation:<br>FOR statement no need ";"<br>Save file must same name with class<br><br>group member<br>1.NURDIAH BASIHOL 57410<br>2.NUR AINA ATHIRAH BINTI RUSDI 57120<br>3. ZAHIDA BINTI AHMAD ZAWAWI 58369<br>4. NOR RAS AMIERZA BINTI MARZUKI 57046</div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:07:13 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187435369</guid>
      </item>
      <item>
         <title>Group 19</title>
         <author>alya261097</author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187435723</link>
         <description><![CDATA[<div>&nbsp;<strong>Why is for loop more advantageous than using other control types?</strong>&nbsp;<br><br>&nbsp;</div><div>1.&nbsp; Fatin Hanani Binti Kamaluddin (58602)&nbsp;</div><div>2. Elizabeth anak Ubam (58571)&nbsp;</div><div>3. Alya Syazana Binti Yumat (58439)&nbsp;</div><div>4. Nor Hazirah Binti Mohd. Tamin (58901)&nbsp;</div><div>5. Nurqamarina Binti Ramlan (59053)&nbsp;</div>]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/130397424/f678a3c3e419875972c48f79aef56286/TMF_2634_Group_19.docx" />
         <pubDate>2017-09-14 06:10:02 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187435723</guid>
      </item>
      <item>
         <title>GROUP 25</title>
         <author>ameerul1102</author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187436505</link>
         <description><![CDATA[<div>Q: <strong>Write a Java program that calculates and prints the sum of integers from 1 to 8. Use the</strong> <em>for</em><strong> structure to loop through the calculation and increment statements. The loop should terminate when the value of x become 9</strong><br><br>public class group25{<br><br>&nbsp; &nbsp; public static void print_sums(){<br><br>&nbsp; &nbsp; &nbsp; &nbsp; int sum = 0 ;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(int i = 1 ; i &lt;= 9 ; i++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(int j = 1 ; j &lt;= i; j++ ){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sum = sum + j ;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.println( sum) ;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sum = 0 ;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br><br>&nbsp; &nbsp; }<br><br>&nbsp; &nbsp; public static void main(String[] args)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; print_sums() ;<br><br><br>&nbsp; &nbsp; }<br>}<br><br><strong><em>Members</em></strong>:<br>1. Ameerul Arief Aqmal Bin Othman 59490<br>2. Adam Jefri bin Mohammed Jamal 55314<br>3. Muhammad Rashdan bin Roslan 56841</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:15:09 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187436505</guid>
      </item>
      <item>
         <title>GROUP 1</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187436989</link>
         <description><![CDATA[<div>Question:</div><div><br></div><div>Explain the following code with its definition and syntax.</div><div><br></div><div>public class MyFirstJava{</div><div>public static void main(String[] args)}</div><div>System.out.println("Hello World");</div><div>}</div><div><br></div><div>}</div><div><br></div><div>Explaination:</div><div><br></div><div>Line 1= public class MyFirstJava{</div><div><br></div><div><em>class </em>is an application/program and every<em> class </em>begins with the word<em> public </em>and<em> class </em>followed by the <strong>class name</strong><em> (MyFirstJava)</em></div><div><br></div><div><br></div><div>Line 2= public static void main(String[] args)}</div><div><br></div><div>Is the first line of the<em> class</em>'s <strong>main method</strong><em>. </em>A<em> </em><strong>method</strong><em> i</em>s a name section of a class that perform a task.</div><div><br></div><div><br></div><div>Line 3= System.out.println("Hello World");</div><div><br></div><div>This line instruct the computer to print<em> "Hello World" </em>on the screen.</div><div><em>("Hello World")</em> is called a <strong>string</strong>.</div><div><br></div><div>All statements are terminated with a <strong>semicolon</strong><strong><em> (;)</em></strong></div><div><br></div><div><br></div><div><em>- </em><strong>Curly braces</strong><strong><em> {......}</em></strong><em> </em>on line 1 and 5 mark the beginning and the end of the <strong>MyFirstJava class.&nbsp;</strong></div><div><em>- </em><strong><em>C</em></strong><strong>urly braces</strong> on line 2 and 4 mark the beginning and the end of the <strong>main method</strong>.&nbsp;</div><div><br></div><div><br></div><div>Group Member:</div><div><br></div><div>Hazelia Anak Nelson 56092</div><div>Nur Fathin Harnani bt Mohd Zainal 57221</div><div>Stephanie Ooi Chia Hui 57997</div><div>Nur Suriani bt Husin 57345</div><div>Nur Syafiqah Hanafiah 57351<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:19:06 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187436989</guid>
      </item>
      <item>
         <title>GROUP 12</title>
         <author>asreena97zailan</author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437156</link>
         <description><![CDATA[<div>Question: Write a simple program that contain a logical error (use a different example from the materials given).<br><br>class Converter{<br>&nbsp;public static void main(String args[]){<br>&nbsp;int degree=0,F=275;<br>&nbsp;degree=(5/9)*(F-32);<br>&nbsp;System.out.println(F+" farenheit is "+degree);<br>&nbsp;}<br>}<br><br>Group members:<br>1. Ng Siow Yang&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;59334<br>2. Liew Hung Yean&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;56418<br>3.Muneerah Hussin&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 56886<br>4.Nur Asreena Zailan&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;57159<br>5.Nur Nadiah Johan Nazri&nbsp; 57307</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:20:05 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437156</guid>
      </item>
      <item>
         <title>GROUP 12</title>
         <author>asreena97zailan</author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437157</link>
         <description><![CDATA[<div>Question: Write a simple program that contain a logical error (use a different example from the materials given).<br><br>class Converter{<br>&nbsp;public static void main(String args[]){<br>&nbsp;int degree=0,F=275;<br>&nbsp;degree=(5/9)*(F-32);<br>&nbsp;System.out.println(F+" farenheit is "+degree);<br>&nbsp;}<br>}<br><br>Group members:<br>1. Ng Siow Yang&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;59334<br>2. Liew Hung Yean&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;56418<br>3. Muneerah Hussin&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 56886<br>4.Nur Asreena Zailan&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;57159<br>5.Nur Nadiah Johan Nazri&nbsp; 57307</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:20:05 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437157</guid>
      </item>
      <item>
         <title>GROUP 12</title>
         <author>asreena97zailan</author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437160</link>
         <description><![CDATA[<div>Question: Write a simple program that contain a logical error (use a different example from the materials given).<br><br>class Converter{<br>&nbsp;public static void main(String args[]){<br>&nbsp;int degree=0,F=275;<br>&nbsp;degree=(5/9)*(F-32);<br>&nbsp;System.out.println(F+" farenheit is "+degree);<br>&nbsp;}<br>}<br><br>Group members:<br>1. Ng Siow Yang&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;59334<br>2. Liew Hung Yean&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;56418<br>3. Muneerah Hussin&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 56886<br>4. Nur Asreena Zailan&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;57159<br>5.Nur Nadiah Johan Nazri&nbsp; 57307</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:20:05 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437160</guid>
      </item>
      <item>
         <title>Group 14</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437419</link>
         <description><![CDATA[<div>&nbsp;</div><div><strong>Demonstrate with code example the differences between continue and break&nbsp;</strong></div><div><br>public class pp {<br><br>&nbsp; &nbsp; &nbsp;public static void main(String[] args) {<br>&nbsp; &nbsp; &nbsp;<br>&nbsp; &nbsp; &nbsp;int ans;<br>&nbsp;System.out.println("Group 14\n Demonstrate with code example the differences between continue and break");<br>&nbsp;System.out.println("The number presented will be: 0,1,2,3,4");<br>&nbsp;<br>&nbsp;br();<br>&nbsp;System.out.println("\n\n");<br>&nbsp;con();<br>&nbsp;<br>&nbsp;System.out.println("1. Alex Fong 51130\n2.Arif 54426\n3.Wee Kai Zhi 58280\n4.Chia Yit Hoong 55679\n");<br>&nbsp; &nbsp; &nbsp;}<br><br>&nbsp; &nbsp; &nbsp;public static void br(){<br>&nbsp; &nbsp; &nbsp;System.out.println("This is break");<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(int i = 0; i &lt;5; i++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(i != 3){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(i);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp;}<br><br>&nbsp; &nbsp; &nbsp;public static void con(){<br>&nbsp; &nbsp; &nbsp;System.out.println("This is continue");<br>&nbsp; &nbsp; &nbsp;for(int i = 0; i&lt;5;i++){<br>&nbsp; &nbsp; &nbsp;if(i != 3){<br>&nbsp; &nbsp; &nbsp;System.out.println(i);<br>&nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp;else{<br>&nbsp; &nbsp; &nbsp;continue;<br>&nbsp; &nbsp; &nbsp;}<br><br>&nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp;<br><br>&nbsp;}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:21:32 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437419</guid>
      </item>
      <item>
         <title>GR</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437553</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:22:13 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437553</guid>
      </item>
      <item>
         <title>GROUP 13</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437563</link>
         <description><![CDATA[<div>Question : Demonstrate&nbsp; the difference between a for loop and a do..while loop using code examples.<br><br>for loop<br><br>// Java program to illustrate for loop.<br>class forLoopDemo<br>{<br>&nbsp; &nbsp; public static void main(String args[])<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; // for loop begins when x=2<br>&nbsp; &nbsp; &nbsp; &nbsp; // and runs till x &lt;=4<br>&nbsp; &nbsp; &nbsp; &nbsp; for (int x = 2; x &lt;= 4; x++)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Value of x:" + x);<br>&nbsp; &nbsp; }<br>}<br><br>do..while loop&nbsp;<br><br>// Java program to illustrate do-while loop<br>class dowhileloopDemo<br>{<br>&nbsp; &nbsp; public static void main(String args[])<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; int x = 21;<br>&nbsp; &nbsp; &nbsp; &nbsp; do<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //The line while be printer even<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //if the condition is false<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Value of x:" + x);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x++;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; while (x &lt; 20);<br>&nbsp; &nbsp; }<br>}<br><br>GROUP MEMBER :<br><br>Rifdi Adhwa Afiq Bin Rosidi 59475<br>Adam Antis Tony 55313<br>Mohammad Affiz Bin Kamarudin 59449<br>Muhammad Adli Bin Lidin 54778<br>Fitzpatrick Anak Sinchew 51802&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:22:16 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187437563</guid>
      </item>
      <item>
         <title>Group 7</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187438013</link>
         <description><![CDATA[<div>question:Demonstrate the difference between a while loop and a do... while loop using code examples.<br>answer:<br>&nbsp; do... while loop:<br>public class DoWhileLoop {<br><br>&nbsp; &nbsp;public static void main(String args[]) {<br>&nbsp; &nbsp; &nbsp; int x = 1;<br><br>&nbsp; &nbsp; &nbsp; do {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.print("value of x : " + x );<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.print("\n");<br>&nbsp; &nbsp; &nbsp; }while( x &lt; 10 );<br>&nbsp; &nbsp;}<br>}<br>while loop:<br>public class While {<br><br>&nbsp; &nbsp;public static void main(String args[]) {<br>&nbsp; &nbsp; &nbsp; int x = 1;<br><br>&nbsp; &nbsp; &nbsp; while( x &lt; 10 ) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.print("value of x : " + x );<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.out.print("\n");<br>&nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp;}<br>}<br>Group members:<br>1.Cheah Ying Rui 55657<br>2.Low Wei Mei 56516<br>3.Claynie anak Edwin 51548<br>4.Dorothy Dumang Gelan Bilong 55835<br>5.Liew Yoong Yiit 56426<br><br></div>]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/144573160/e13bd8c7f6ecb0184d95f7976ad4f95e/do_while_loop.png" />
         <pubDate>2017-09-14 06:24:36 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187438013</guid>
      </item>
      <item>
         <title>Group 17</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187438281</link>
         <description><![CDATA[<div>Question : What is wrong with the following program? Provide a recommendation program to fix the error.<br><br>public class GotErrors{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public static void main(String[] args){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int i;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int j=5;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(j&gt;3)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;system.out.println(i+4);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>}<br><br>Answer :&nbsp;<br>&nbsp;</div><div>public class GotErrors{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public static void main(String[] args){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int i=0;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int j=5;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(j&gt;3)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;system.out.println(i+4);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>}&nbsp;</div><div><br>The error occurs when the integer i is not initialised&nbsp;with value<br><br>Lim Hui Sin 56436<br>Atikah Kalinggalan 55541<br>Aina Faizah Mohmad 55374<br>Tan Pooi Yan 58078</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:26:26 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187438281</guid>
      </item>
      <item>
         <title>Group 11</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187438736</link>
         <description><![CDATA[<div>Question:<br>Write a java program that accepts user input to convert a Celcius to Kelvin and vice versa. You can use either a switch or if/else condition.<br><br>Answer:<br>public class Test {<br>&nbsp; &nbsp; public static void main(String [] args)&nbsp;<br>&nbsp; &nbsp; {&nbsp;<br>&nbsp; &nbsp; &nbsp;Scanner scan = new Scanner(System.in);&nbsp;<br>String tempScale = "";&nbsp;<br><br>System.out.print("Enter the current outside temperature: ");&nbsp;<br>double temps = scan.nextDouble();&nbsp;<br><br>System.out.println("Celsius or Kelvin (C or K): ");&nbsp;<br>char input = scan.nextInt();&nbsp;<br><br>if (input == 'C')&nbsp;<br>{&nbsp;<br>// convert C to K&nbsp;<br>temps = (temps) + 273.15 ;&nbsp;<br>tempScale = "Kelvin.";&nbsp;<br>}&nbsp;<br>else if (input == 'K')<br>&nbsp;{&nbsp;<br>// convert K to C&nbsp;<br>temps = (temps) - 273.15;&nbsp;<br>tempScale = "Celcius.";&nbsp;<br>}//end if/else&nbsp;<br><br>System.out.println("The answer = " +temps+ "degrees" +tempScale+);&nbsp;<br><br>}//end main()&nbsp;<br>}//end class<br><br>Kaushinee A/P Ravindran(56273)<br>Lingkeswary a/p J.Jeyakumaran(56467)<br>Rebeccaroobabathy a/p Ravichandran(57700)<br>Nor Shamira Binti Sabri (58906)</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:29:11 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187438736</guid>
      </item>
      <item>
         <title>GROUP 16</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187438954</link>
         <description><![CDATA[<div>Question:<br><br>Demonstrate the difference between the following two statement using code examples.<br><br>statement 1:&nbsp;<br><br>for ( int i=0; i&lt;10; ++i)<br>	sum +=i;<br><br><br>statement 2:&nbsp;<br><br>for( int i=0; i&lt;10;i++)<br>	sum +=i;<br><br>Answer:<br><br>Statement 1:<br><br>package demo;<br><br>import java.util.Scanner;<br><br>public class DemoTranslation {<br>	public static void main(String[] args) {<br>		int sum = 4;<br><br>		for(int i = 0; i &lt; 10; i++) {<br>			System.out.print("Enter value of sum : ");<br>			sum = STDIN_SCANNER.nextInt();<br>		}<br>	}<br><br>	public final static Scanner STDIN_SCANNER = new Scanner(System.in);<br>}<br><br><br><br>Statement 2:<br><br>package demo;<br><br>import java.util.Scanner;<br><br>public class DemoTranslation {<br>	public static void main(String[] args) {<br>		int sum = 4;<br><br>		for(int i = 0; i &lt; 10; ++i) {<br>			System.out.print("Enter value of sum : ");<br>			sum = STDIN_SCANNER.nextInt();<br>		}<br>	}<br><br>	public final static Scanner STDIN_SCANNER = new Scanner(System.in);<br>}<br><br>STEPHENIE BURI (53949)<br>VIVIENTY KELAM (54172)<br>NOR MURSYIDAH MOHAMAD (57045)<br>FARAH IZZATI BT ABU BAKAR (55937)<br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:30:41 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187438954</guid>
      </item>
      <item>
         <title>GROUP 9</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187439258</link>
         <description><![CDATA[<div>QUESTION : A Scanner Object is used to let user to input into a JAVA program.Write a currency exchange program that converts MYR to GBP and vice versa. User will enter the value for MYR and GBP to be converted.<br><br>import java.util.Scanner;<br><br>public class conversion<br>{<br>&nbsp; &nbsp; public static void main (float[]args)<br>&nbsp; &nbsp; {<br>		Scanner input = new Scanner(System.in);<br>		System.out.print("Enter MYR:");<br>		<br>		double myr;<br>		if (myr&gt;1)<br>		{<br>			double gbp = myr/5.55;<br>			<br>			System.out.println("The converted value from MYR to GBP is : GBP");<br>		}<br>		else&nbsp;<br>			System.out.println("Try again");<br>	}<br>members : HONG GUAN TIN 56122<br>SUZANNA RENUSHA 58019<br>NORBAZILAH BINTI MD ISA 58915<br>JANE YONG ZHEN ZHEN 56184 <br><br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:32:11 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187439258</guid>
      </item>
      <item>
         <title>group 4</title>
         <author>zyra_aput</author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187439559</link>
         <description><![CDATA[<div>QUESTION: write a program that create, initialize and process arrays with the following content:<br>5,6,9,3,2<br>first, list out the array. then give a sum of each element that has been powered by 2. for example, the sum of 5^2+6^2+....using loop<br>your submission should include the code and result<br><br>answer:<br>public class TestArray{<br> public static void main(String args[]){<br>   double[] myList={3,2,5,6,9};<br>   for ( int i=0; i&lt;myList.length; i++){<br>   System.out.printIn(myList[i]+"");<br>    }<br>  double total =0;<br>  for(int i=0; i&lt;myList.length; i++){<br>  total+=myList[i];<br>  }<br>  System.out.printIn("total is"+total);<br>  <br>}<br>output:3,2,5,6,9<br>total is 155<br>group members:<br>Nurul Nazira Binti Hashim 57555<br>Sharifah Nur Aimi Binti Syed Ali Hakim 57815<br>Nurha Dewi Waktu Saptu 57425<br>Syahidatul Annisa Sufian 580<br><br><br><br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:33:39 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187439559</guid>
      </item>
      <item>
         <title>GROUP 5</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187440144</link>
         <description><![CDATA[<div>Question : Write a program that create, initialize and process arrays with the following content:&nbsp;<br>3,6,7,4,10<br>First, list out the array. Then give a sum of the product of all element.<br>Your submission should include the code and result.<br><br>Answer:<br><br>class Array<br>{<br><br>public static void main(String[]args)<br>{<br>int [] a={3,6,7,4,10};<br>int sum=0;<br><br><br>for (int num:a)<br>{<br>&nbsp;sum=sum+num;<br>}<br>System.out.println("The sum is" +sum);<br>}<br>}<br><br>Group Members:<br>1. Dygku Fazira 59580<br>2. Suriantih 59945<br>3. Heldi Bunga 59619<br>4. Dustan Ayum 59578<br>5. Rashshell Anak Matan 57693<br><br>Output:<br><br></div>]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/220875896/75a45e2d15ae7d1b344ddb5fc1c61004/output.png" />
         <pubDate>2017-09-14 06:36:53 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187440144</guid>
      </item>
      <item>
         <title>Group 8</title>
         <author>suhaidahjalil97</author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187441251</link>
         <description><![CDATA[<div>A scanner object (see slide 22 onward from lecture 3. ppt) is use to let user to input into a java programme. write a program that calculate the price per area of a Land, where users will enter the feet and the price.<br><br>Answer:<br>//Calculate the price of Land using, pricePerFeet = (width * length) * price<br>//Uses the feet and the price<br>import java.util.Scanner;//to use<br>public class Land<br>{<br>public static void main (String[] args)<br>{<br>&nbsp;Scanner input = new Scanner(System.in); //declare a Scanner<br>double area;<br>&nbsp;double width, length;<br>&nbsp;double price;<br>&nbsp;double pricePerFeet;<br>&nbsp;System.out.print("Enter the width and length of the Land in a feet:");<br>&nbsp;width = input.nextDouble();&nbsp;<br>&nbsp;length = input.nextDouble();<br>&nbsp;area = (width * length);&nbsp;<br>&nbsp;System.out.print("Enter the price of the Land");<br>&nbsp;price = input.nextDouble();<br>&nbsp;pricePerFeet = price * area;<br>&nbsp;System.out.println("The price per area of a Land "+ area + " is " + pricePerFeet);<br>&nbsp;}<br>}<br><br>56011 Florina Ling Anak Castelo<br>56995 Noor Suhaidah bt Abd jalil<br>53432 Nurul aqilah Bt Saif<br>57403 Nuramira Alissa bt Al Hamsah<br>56336 Ku Nur Atikah Bt Ku Hasni</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:40:52 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187441251</guid>
      </item>
      <item>
         <title>GROUP 10</title>
         <author></author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187442360</link>
         <description><![CDATA[<div><br></div><div>Question :&nbsp; write a program that receive a stringand a number from the user. The program then displays a concatenation of a string and a number .&nbsp;<br><br>Answer&nbsp;<br>import java.util.Scanner;<br>&nbsp;<br>class GetInputFromUser<br>{<br>&nbsp; &nbsp;public static void main(String args[])<br>&nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; int a;<br>&nbsp; &nbsp; &nbsp; float b;<br>&nbsp; &nbsp; &nbsp; String s;<br>&nbsp;<br>&nbsp; &nbsp; &nbsp; Scanner in = new Scanner(System.in);<br>&nbsp;<br>&nbsp; &nbsp; &nbsp; System.out.println("Enter a string");<br>&nbsp; &nbsp; &nbsp; s = in.nextLine();<br>&nbsp; &nbsp; &nbsp; System.out.println("You entered string "+s);<br>&nbsp;<br>&nbsp; &nbsp; &nbsp; System.out.println("Enter an integer");<br>&nbsp; &nbsp; &nbsp; a = in.nextInt();<br>&nbsp; &nbsp; &nbsp; System.out.println("You entered integer "+a);<br>&nbsp;<br>&nbsp; &nbsp; &nbsp; System.out.println("Enter a float");<br>&nbsp; &nbsp; &nbsp; b = in.nextFloat();<br>&nbsp; &nbsp; &nbsp; System.out.println("You entered float "+b);&nbsp; &nbsp;<br>&nbsp; &nbsp;}<br>}<br>GROUP MEMBER<br>NUR RAHMAH MOHD NAZROL(57317)<br>AZIEDA FAKHRANA(58498)<br>SITI NUR AFIQAH BINTI NANDU(57928)<br>EVITA JANE ANAK JOHN(55909)<br>SELINA LUAT(57795)&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 06:45:29 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187442360</guid>
      </item>
      <item>
         <title>Group 24</title>
         <author>mrbutler1396</author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187442794</link>
         <description><![CDATA[<div>Write a Java program that calculates and prints the sum of integers from 1 to 8. Use the while structure to loop through the calculation and increment statement. The loop should terminate when the value of x become 9.<br><br>Answer:<br><br>class loop<br>{<br><br>&nbsp;public static void main(String[] args)<br>&nbsp;{<br>&nbsp;int sum = 0, i = 9;<br><br>&nbsp;while(i != 0){<br>&nbsp;sum += i;<br>&nbsp;- - i;<br>&nbsp;}<br><br>&nbsp;System.out.println("Sum = " + sum);<br>&nbsp;<br>&nbsp;}<br>&nbsp;<br><br>}<br><br>~<br><br>Abdul muhaimin 55305<br>Mahalil Ridzuan 50685<br>Muhammad Haziq 56814</div>]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/176625600/fb97830530d5b2dbc44d7118b0c7f4ff/image.png" />
         <pubDate>2017-09-14 06:47:06 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187442794</guid>
      </item>
      <item>
         <title>GROUP 3</title>
         <author>hayatulfarah1997</author>
         <link>https://padlet.com/emiriaj/w2h1thgkslos/wish/187450061</link>
         <description><![CDATA[<div>write java program that assigns a radius of 25 and computes the area. the value for pi is 3.14159<br>&nbsp;<br>answer:<br>//assigns a radius of 25 and computes area using formula area= л r2<br>//value for Pi is 3.14159<br>//import java.util.Scanner<br>public class Area<br>{<br>	public static void main(String args[])<br>	{<br>	int radius;<br>	double Pi=3.14159;<br>&nbsp; &nbsp; double area;<br>&nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; radius=25;<br>&nbsp; &nbsp; area=radius*radius*3.14159;<br>	<br>	<br>	System.out.println("Area of circle:"+radius+"is"+area);<br>}<br>}&nbsp;<br><br>output:<br>Area of circle:25is1963.4937499999999<br><br>Nur Hayatulfarah bt Roslan 57250<br>Norliyana bt Abd Rahim 57084<br>Fatin Shahirah Bt Amanzuria 55978<br>Noor Syahirah bt Noor Kifli 56996&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-14 07:23:39 UTC</pubDate>
         <guid>https://padlet.com/emiriaj/w2h1thgkslos/wish/187450061</guid>
      </item>
   </channel>
</rss>
