<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>array task by yongjun zheng</title>
      <link>https://padlet.com/yzheng99/fphvdoj2x4f5</link>
      <description>Made with joy</description>
      <language>en-us</language>
      <pubDate>2016-10-19 08:30:42 UTC</pubDate>
      <lastBuildDate>2018-02-28 18:47:46 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Arron and John</title>
         <author></author>
         <link>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132690915</link>
         <description><![CDATA[<div>int[] numbers=new int [10];<br>numbers[0]=12;<br>numbers[1]= 34;<br>numbers[2]=23;<br>numbers[3]=2;<br>numbers[4]=4;<br>numbers[5]=56;<br>numbers[6]=80;<br>numbers[7]=34;<br>numbers[8]=45;<br>numbers[9]=90;<br><br>int n=numbers.length;<br>int s=0;<br>for(int i=0;i&lt;10; i++) {<br>	for (int j=1; j&lt;(n-i); j++) {<br>		if (numbers[j] &lt; numbers[j-1]) {<br>			s=numbers[j];<br>			numbers[j]=numbers[j+1];<br>			numbers[j+1]=s;<br>			}<br>	}<br>System.out.println("The sorted numbers are" + " " +(numbers[i]));<br>}<br>	}<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2016-10-24 13:42:46 UTC</pubDate>
         <guid>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132690915</guid>
      </item>
      <item>
         <title>un</title>
         <author></author>
         <link>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132691204</link>
         <description><![CDATA[<div> </div>]]></description>
         <enclosure url="" />
         <pubDate>2016-10-24 13:43:33 UTC</pubDate>
         <guid>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132691204</guid>
      </item>
      <item>
         <title>Cool table 3</title>
         <author></author>
         <link>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132692086</link>
         <description><![CDATA[<div>&nbsp;int[] sorting={12,34,23,2,4,56,80,34,45,90};<br>&nbsp; &nbsp; &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp;int holdspace=0;<br>&nbsp; &nbsp; &nbsp; &nbsp;int length=sorting.length;<br>&nbsp; &nbsp; &nbsp; &nbsp;for(int i: sorting){<br>&nbsp; &nbsp; 	 <br>&nbsp; &nbsp; 	&nbsp; &nbsp;for(int x=1;x&lt;length;x++){<br>&nbsp; &nbsp; 		&nbsp; &nbsp;<br>&nbsp; &nbsp; 		&nbsp; &nbsp;if(sorting[x-1]&gt;sorting[x]){<br>&nbsp; &nbsp; 			&nbsp; &nbsp;holdspace=sorting[x-1];<br>&nbsp; &nbsp; 			&nbsp; &nbsp;sorting[x-1]=sorting[x];<br>&nbsp; &nbsp; 			&nbsp; &nbsp;sorting[x]=holdspace;<br>&nbsp; &nbsp; 			&nbsp; <br>&nbsp; &nbsp; 		&nbsp; &nbsp;}<br>&nbsp; &nbsp; 	&nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;for(int i=0;i&lt;length;i++){<br>&nbsp; &nbsp; 	&nbsp; &nbsp;System.out.println(sorting[i]);<br>&nbsp; &nbsp; &nbsp; &nbsp;}</div>]]></description>
         <enclosure url="" />
         <pubDate>2016-10-24 13:46:03 UTC</pubDate>
         <guid>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132692086</guid>
      </item>
      <item>
         <title>&amp;nbsp;</title>
         <author></author>
         <link>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132692715</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2016-10-24 13:47:35 UTC</pubDate>
         <guid>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132692715</guid>
      </item>
      <item>
         <title>Kewin</title>
         <author></author>
         <link>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132695321</link>
         <description><![CDATA[<div>public class bubbleSort {<br>	<br>	public static void main(String[] args) {<br>		// TODO Auto-generated method stub<br>		int[] nums ={12,55,23,87,11,5};<br>		System.out.println(Sort(nums[]));<br>	}<br>	<br>	public int Sort(int[] nums){<br>		boolean flag=true;<br>		while(flag){<br>			flag = false;<br>			for(int i = 0;i&lt;nums.length;i++){<br>			if(i&lt;nums.length-1&amp;&amp;nums[i]&gt;nums[i+1]){<br>				for(int j = i; j&lt;nums.length;j++){<br>					int temp = nums[j];<br>					nums[i]=nums[j];<br>					nums[j]=temp;<br>					flag=true;<br>				}<br>			}<br>		}<br>		}<br><br>		return nums;		<br>	}<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2016-10-24 13:53:37 UTC</pubDate>
         <guid>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132695321</guid>
      </item>
      <item>
         <title>Paul</title>
         <author></author>
         <link>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132695717</link>
         <description><![CDATA[<div>int[] Integers = {4,3,7,14,1,51,11,93,2,71};&nbsp; &nbsp; // Initialize Array of 10 integers<br>&nbsp;<br>&nbsp;boolean swap = true; // Set swap to true otherwise the algorithm may not run<br>&nbsp;<br>&nbsp;int temp;<br>&nbsp;<br>&nbsp;do{<br>&nbsp;<br>&nbsp;swap=false;<br>&nbsp;<br>&nbsp;for(int i=0; i&lt;Integers.length-1; i++){<br>&nbsp;<br>&nbsp;if(Integers[i]&gt;Integers[i+1]){ // Compare current and next value<br>&nbsp;<br>&nbsp;temp = Integers[i+1];&nbsp; // If the value is larger than the next value, swap them<br>&nbsp;<br>&nbsp;Integers[i+1] = Integers[i];&nbsp;<br>&nbsp;<br>&nbsp;Integers[i] = temp;<br>&nbsp;<br>&nbsp;swap = true; // Makes sure the computer knows a swap has occured<br>&nbsp;<br>&nbsp;}<br>&nbsp;<br>&nbsp;}<br>&nbsp;<br>&nbsp;}while(swap==true);<br>&nbsp;<br>&nbsp;for(int i=0; i&lt;Integers.length; i++){ // Output the sorted array values in ascending order<br>&nbsp;&nbsp;<br>&nbsp;System.out.println(Integers[i]);<br>&nbsp;<br>&nbsp;}<br>&nbsp;}</div>]]></description>
         <enclosure url="" />
         <pubDate>2016-10-24 13:54:41 UTC</pubDate>
         <guid>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132695717</guid>
      </item>
      <item>
         <title>matthew and daniel </title>
         <author></author>
         <link>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132696366</link>
         <description><![CDATA[<div>package week6;<br><br>public class bubblesort {<br><br>	public static void main(String[] args) {<br>	int[] arr={12,34,23,2,4,56,80,34,45,90};<br>	<br><br>	<br>	 int j;<br>&nbsp; &nbsp; &nbsp;boolean flag = true; &nbsp; // set flag to true to begin first pass<br>&nbsp; &nbsp; &nbsp;int temp=0;&nbsp; //holding variable<br><br>&nbsp; &nbsp; &nbsp;while ( flag )<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; flag= false;&nbsp; &nbsp; //set flag to false awaiting a possible swap<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for( j=0;&nbsp; j &lt; arr.length -1;&nbsp; j++ )<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ( arr[ j ] &lt; arr[j+1] ) &nbsp; // change to &gt; for ascending sort<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;temp = arr[ j ];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //swap elements<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;arr[ j ] = arr[ j+1 ];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;arr[ j+1 ] = temp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; flag = true;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //shows a swap occurred &nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br>&nbsp; &nbsp; &nbsp; }&nbsp;<br>&nbsp; &nbsp; &nbsp;<br>&nbsp; &nbsp; &nbsp;for (int i = 0; i &lt; arr.length; i ++)<br>&nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; 		System.out.println (arr[i]);<br>&nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp;<br><br>	}<br>	<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2016-10-24 13:56:15 UTC</pubDate>
         <guid>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132696366</guid>
      </item>
      <item>
         <title>Nico</title>
         <author></author>
         <link>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132697955</link>
         <description><![CDATA[<div>	int[] arr={12, 34, 23, 2, 4, 56, 80, 34, 45, 90};<br>	<br>	int length = arr.length;<br>	int temp = 0;<br>	<br>	for(int i=0; i &lt;  length; i++){<br>		for(int n = 1; n &lt; (length - i); n++){<br>			if(arr[n-1] &gt; arr[n]){<br>				temp = arr[n-1];<br>				arr[n-1] = arr[n];<br>				arr[n] = temp;<br>					<br>			}<br>		}<br>	}for(int i=0; i &lt; arr.length; i++){<br>        System.out.print(arr[i] + " ");</div>]]></description>
         <enclosure url="" />
         <pubDate>2016-10-24 13:59:37 UTC</pubDate>
         <guid>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/132697955</guid>
      </item>
      <item>
         <title>.</title>
         <author></author>
         <link>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/236594984</link>
         <description><![CDATA[<div>.</div>]]></description>
         <enclosure url="" />
         <pubDate>2018-02-28 18:47:42 UTC</pubDate>
         <guid>https://padlet.com/yzheng99/fphvdoj2x4f5/wish/236594984</guid>
      </item>
   </channel>
</rss>
