<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://mylimbicwiki.fr/index.php?action=history&amp;feed=atom&amp;title=BubbleSort_%28Java%29</id>
	<title>BubbleSort (Java) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://mylimbicwiki.fr/index.php?action=history&amp;feed=atom&amp;title=BubbleSort_%28Java%29"/>
	<link rel="alternate" type="text/html" href="http://mylimbicwiki.fr/index.php?title=BubbleSort_(Java)&amp;action=history"/>
	<updated>2026-04-16T13:10:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>http://mylimbicwiki.fr/index.php?title=BubbleSort_(Java)&amp;diff=548&amp;oldid=prev</id>
		<title>Fukakai: Page créée avec « &lt;syntaxhighlight lang=&quot;Java&quot; line=&#039;line&#039;&gt; class BubbleSort {      void bubbleSort(int arr[]) {          int n = arr.length;          for (int i = 0; i &lt; n-1; i++)... »</title>
		<link rel="alternate" type="text/html" href="http://mylimbicwiki.fr/index.php?title=BubbleSort_(Java)&amp;diff=548&amp;oldid=prev"/>
		<updated>2019-05-30T02:39:50Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;syntaxhighlight lang=&amp;quot;Java&amp;quot; line=&amp;#039;line&amp;#039;&amp;gt; class BubbleSort {      void bubbleSort(int arr[]) {          int n = arr.length;          for (int i = 0; i &amp;lt; n-1; i++)... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;Java&amp;quot; line=&amp;#039;line&amp;#039;&amp;gt;&lt;br /&gt;
class BubbleSort { &lt;br /&gt;
    void bubbleSort(int arr[]) { &lt;br /&gt;
        int n = arr.length; &lt;br /&gt;
        for (int i = 0; i &amp;lt; n-1; i++) &lt;br /&gt;
            for (int j = 0; j &amp;lt; n-i-1; j++) &lt;br /&gt;
                if (arr[j] &amp;gt; arr[j+1]){ &lt;br /&gt;
                    // swap arr[j+1] and arr[i] &lt;br /&gt;
                    int temp = arr[j]; &lt;br /&gt;
                    arr[j] = arr[j+1]; &lt;br /&gt;
                    arr[j+1] = temp; &lt;br /&gt;
                } &lt;br /&gt;
    } &lt;br /&gt;
  &lt;br /&gt;
    /* Prints the array */&lt;br /&gt;
    void printArray(int arr[]) { &lt;br /&gt;
        int n = arr.length; &lt;br /&gt;
        for (int i=0; i&amp;lt;n; ++i) &lt;br /&gt;
            System.out.print(arr[i] + &amp;quot; &amp;quot;); &lt;br /&gt;
        System.out.println(); &lt;br /&gt;
    } &lt;br /&gt;
  &lt;br /&gt;
    // Driver method to test above &lt;br /&gt;
    public static void main(String args[]) { &lt;br /&gt;
        BubbleSort ob = new BubbleSort(); &lt;br /&gt;
        int arr[] = {64, 34, 25, 12, 22, 11, 90}; &lt;br /&gt;
        ob.bubbleSort(arr); &lt;br /&gt;
        System.out.println(&amp;quot;Sorted array&amp;quot;); &lt;br /&gt;
        ob.printArray(arr); &lt;br /&gt;
    } &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fukakai</name></author>
	</entry>
</feed>