<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
  <channel>
    <title>Udvikleren.dk - Seneste [java] forum tråde</title>
    <description>De seneste forum tråde i [java] på Udvikleren.dk</description>
    <link>http://www.udvikleren.dk/</link>
    <pubDate>Wed, 29 Apr 2026 00:06:10 GMT</pubDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Udvikleren.dk RSS Feeder</generator>
    <ttl>60</ttl>
    <item>
      <title>Hjælp til eksamensopgave i programmering/ java - betaling</title>
      <description>Hej&lt;br /&gt;&lt;br /&gt;Vi er to, der sidder med en eksamensopgave, der skal afleveres på torsdag. Vi skal lave en webshop i Eclipse (java), hvor kunden skal kunne købe nogle varer. &lt;br /&gt;&lt;br /&gt;Vi har lavet nogle classer under henholdsvis View, Application, Data og Model. Er der nogle java-kloge hoveder, der kan hjælpe? &lt;img src="/images/smileys/neutral.gif" alt=":|" title=":|" /&gt;</description>
      <link>http://www.udvikleren.dk/forum/47348/hjaelp-til-eksamensopgave-i-programmering-java-betaling/</link>
      <pubDate>Tue, 15 May 2018 11:57:00 GMT</pubDate>
    </item>
    <item>
      <title>Programmering </title>
      <description>Hejsa&lt;br /&gt;Vil høre jeres mening, ved ikke helt hvilket sprog jeg skal starte med. Har lavet en del web-programmering og rigtig meget i gammel Borland pascal startede i basic.. ja det var tider uden internet. Vil gerne rigtig igang igen. Tænker også nogle app til andriod og Ios. Hvad er jeres erfaringer og hvad med Google go, ville nok kigge på c da det er mest oplagt i forhold til pascal men java til andriod app&lt;br /&gt;&lt;br /&gt;Hilsen Kim </description>
      <link>http://www.udvikleren.dk/forum/47319/programmering-/</link>
      <pubDate>Sat, 10 Feb 2018 22:52:20 GMT</pubDate>
    </item>
    <item>
      <title>Kalender med timeslots på</title>
      <description>Hejsa!&lt;br /&gt;&lt;br /&gt;Jeg er igang med at kode en JavaFX application som jeg gerne ville have til at kunne fungere som en planlægningskalender. Det skal dybest set bruges således at en person kan plotte ind som eksempel: "Tirsdag d.23-02-2018 - Matematik nr 1, varighed 45 minutter, klasselokale C"&lt;br /&gt;&lt;br /&gt;Jeg kunne godt bruge et indspark til et effektivt database design i SQL.&lt;br /&gt;&lt;br /&gt;her er mit udkast:&lt;br /&gt;&lt;div class="codeboxheader" id="code_2067500347" onclick="ToggleCodeBox(this.id);"&gt;&lt;img id="code_2067500347_arrow" src="/images/icons/codeboxarrow_down.gif" alt="Fold kodeboks ind/ud" title="Fold kodeboks ind/ud" /&gt;SQL kode&amp;nbsp;&lt;/div&gt;&lt;pre id="code_2067500347code" style="border-top: 0px; display: none;"&gt;&lt;ol&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #0000FF;"&gt;CREATE&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;TABLE&lt;/span&gt;&lt;span style="color: #000000;"&gt; Fag (&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    ID &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;integer&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;PRIMARY&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;KEY&lt;/span&gt;&lt;span style="color: #000000;"&gt; AUTOINCREMENT,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    fagNavn &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    fagBeskrivelse &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;CREATE&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;TABLE&lt;/span&gt;&lt;span style="color: #000000;"&gt; Lektioner (&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    ID &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;integer&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;PRIMARY&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;KEY&lt;/span&gt;&lt;span style="color: #000000;"&gt; AUTOINCREMENT,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    lekNavn &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    lekBeskrivelse &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    lekTid &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;datetime&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    lekClothing &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    lekLokation &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    lekFag &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    lekAnsvar &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;CREATE&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;TABLE&lt;/span&gt;&lt;span style="color: #000000;"&gt; Lokation (&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    ID &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;integer&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;PRIMARY&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;KEY&lt;/span&gt;&lt;span style="color: #000000;"&gt; AUTOINCREMENT,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    lokationBeskrivelse &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    lokationNavn &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;CREATE&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;TABLE&lt;/span&gt;&lt;span style="color: #000000;"&gt; Clothing (&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    ID &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;integer&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;PRIMARY&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;KEY&lt;/span&gt;&lt;span style="color: #000000;"&gt; AUTOINCREMENT,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    clothingBeskrivelse &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;CREATE&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;TABLE&lt;/span&gt;&lt;span style="color: #000000;"&gt; Ansvar (&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    ID &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;integer&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;PRIMARY&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;KEY&lt;/span&gt;&lt;span style="color: #000000;"&gt; AUTOINCREMENT,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    ansNavn &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;CREATE&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;TABLE&lt;/span&gt;&lt;span style="color: #000000;"&gt; Skema (&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    ID &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;integer&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;PRIMARY&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;KEY&lt;/span&gt;&lt;span style="color: #000000;"&gt; AUTOINCREMENT,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    ugeNummer &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;integer&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    Mandag &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    Tirsdag &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    Onsdag &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    Torsdag &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    Fredag &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    L&amp;#248;rdag &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    S&amp;#248;ndag &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;text&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/pre&gt;&lt;br /&gt;Og her I billed format &lt;a href="https://drive.google.com/file/d/1bhwU8PsNUzPpdePaDgiEu5vtItHSqDXs/view?usp=sharing" rel="nofollow"&gt;SQL Skema&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I sidste ende skal det alt sammen ligne noget ála det her:&lt;br /&gt;&lt;a href="https://drive.google.com/file/d/1FoEFroxYE8carKnjVHSmJAyyixcQB457/view?usp=sharing" rel="nofollow"&gt;Udprintet skema&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;På forhånd mange tak!&lt;br /&gt;&lt;br /&gt;</description>
      <link>http://www.udvikleren.dk/forum/47317/kalender-med-timeslots-paa/</link>
      <pubDate>Thu, 08 Feb 2018 16:49:09 GMT</pubDate>
    </item>
    <item>
      <title>Problemer med at vise forskellig valuta - webshop shopify</title>
      <description>Hej alle &lt;img src="/images/smileys/smiley.gif" alt=":)" title=":)" /&gt;&lt;br /&gt;&lt;br /&gt;Måske er jeg ikke i det rigtige forum, men tænkte jeg lige ville prøve alligevel.&lt;br /&gt;&lt;br /&gt;Jeg har en webshop &lt;a href="http://cutupstudio.com" rel="nofollow"&gt;cutupstudio.com&lt;/a&gt; som har både danske og udenlandske brugere. Derfor ville jeg gerne vise priserne i både DKK og EUR, men der selvfølgelig opstået lidt problemer med implementeringen af 'koden' undervejs. Jeg har fulgt den vejledning til en 'skifteknap' der skulle kunne vise to slags valuta og som &lt;a href="https://help.shopify.com/themes/customization/currencies/switch-between-two-currencies" rel="nofollow"&gt;Shopify selv har lagt op her&lt;/a&gt;, men den gør det ikke altid korrekt. Standartvalutaen på siden er sat til at være DKK og så længe man først skifter valuta når man er nået ind på en produktside, er der umiddelbart ikke noget problem. Men hvis man på en kollektionsside skifter til EUR og derefter klikker sig ind på en produktside, vises standartvalutaen igen, altså DKK, men når man så igen skifter til EUR, så sker der ikke noget med prisen, men DKK skiftes bare ud med EUR. 119 DKK bliver altså til 119 EUR, hvilket er ret misvisende..&lt;br /&gt;&lt;br /&gt;Er der mon nogen herinde som kunne have en forklaring på det?&lt;br /&gt;&lt;br /&gt;I så fald skal I have mange tak på forhånd! &lt;img src="/images/smileys/smiley.gif" alt=":)" title=":)" /&gt;&lt;br /&gt;&lt;br /&gt;Mvh Stina</description>
      <link>http://www.udvikleren.dk/forum/47208/problemer-med-at-vise-forskellig-valuta-webshop-shopify/</link>
      <pubDate>Sun, 16 Jul 2017 18:34:08 GMT</pubDate>
    </item>
    <item>
      <title>Kryds og bolle med Java FX og TCP</title>
      <description>Hej&lt;br /&gt;Jeg er igang med et lille projekt, hvor jeg bygger et kryds og bolle spil i Java og med Java FX som GUI.&lt;br /&gt;Jeg har allerede nu bygget programmet således at det fungerer når begge spillere sidder på den samme computer og her fungerer det.&lt;br /&gt;Jeg har dog lidt problemer med at få det til at køre henover netværket, da jeg gerne vil have at serveren er ansvarlig for spillet og klienterne sender så koordinaterne til den placering de vil bruge. Serveren skal så placere spilbrikken i et multidimensionelt array og kontrollere om der kan spilles videre (Dette håndteres allerede af min Gameboard klasse). Når brikken er placeret skal den anden klient have besked om at brikken er placeret, samt hvor den er placeret, således at man kan se hvor modstanderen har placeret sin brik.&lt;br /&gt;Jeg sidder dog fast på det punkt hvor jeg skal have den til at sætte spillet igang.&lt;br /&gt;&lt;div class="codeboxheader" id="code_491800158" onclick="ToggleCodeBox(this.id);"&gt;&lt;img id="code_491800158_arrow" src="/images/icons/codeboxarrow_down.gif" alt="Fold kodeboks ind/ud" title="Fold kodeboks ind/ud" /&gt;Java kode&amp;nbsp;&lt;/div&gt;&lt;pre id="code_491800158code" style="border-top: 0px; display: none;"&gt;&lt;ol&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #0000FF;"&gt;package&lt;/span&gt;&lt;span style="color: #000000;"&gt; ServerUI;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;import&lt;/span&gt;&lt;span style="color: #000000;"&gt; Models.Gameboard;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;import&lt;/span&gt;&lt;span style="color: #000000;"&gt; java.io.IOException;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;import&lt;/span&gt;&lt;span style="color: #000000;"&gt; java.net.ServerSocket;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;import&lt;/span&gt;&lt;span style="color: #000000;"&gt; java.net.Socket;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;import&lt;/span&gt;&lt;span style="color: #000000;"&gt; java.util.ArrayList;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;import&lt;/span&gt;&lt;span style="color: #000000;"&gt; java.util.List;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;class&lt;/span&gt;&lt;span style="color: #000000;"&gt; Main&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;{&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;private&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;static&lt;/span&gt;&lt;span style="color: #000000;"&gt; Gameboard gameboard;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;private&lt;/span&gt;&lt;span style="color: #000000;"&gt; List&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;Socket&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; Connections &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;new&lt;/span&gt;&lt;span style="color: #000000;"&gt; ArrayList&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;Socket&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;();&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;static&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;void&lt;/span&gt;&lt;span style="color: #000000;"&gt; main(String[] args) &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;throws&lt;/span&gt;&lt;span style="color: #000000;"&gt; Exception&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    {&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;try&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        {&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            Main.gameboard &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;new&lt;/span&gt;&lt;span style="color: #000000;"&gt; Gameboard();&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            System.out.println(&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;Server started&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;final&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; PORT &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;34652&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            System.out.println(&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;The game server is running and waiting for clients.&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            ServerSocket listener &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;new&lt;/span&gt;&lt;span style="color: #000000;"&gt; ServerSocket(PORT);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;catch&lt;/span&gt;&lt;span style="color: #000000;"&gt; (Exception ex)&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        {&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            System.out.print(ex.getMessage());&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Efter hvad jeg kan læse mig frem til på nettet, så skal jeg inden i ovenstående try-block have en try-block mere for at håndtere kørslen af spillet.&lt;br /&gt;Kan også læse mig til at spillet skal køre som sin egen tråd, men kan ikke se hvad helt præcist skal ske for at det kommer til at virke.&lt;br /&gt;Hele sourcecode til mit projekt kan ses her: &lt;a href="https://github.com/KHIT93/JavaTCPTickTackToe"&gt;https://github.com/KHIT93/JavaTCPTickTackToe&lt;/a&gt;&lt;br /&gt;</description>
      <link>http://www.udvikleren.dk/forum/47173/kryds-og-bolle-med-java-fx-og-tcp/</link>
      <pubDate>Tue, 30 May 2017 08:17:55 GMT</pubDate>
    </item>
    <item>
      <title>Datamatiker 1. års projekt.</title>
      <description>Hej, &lt;br /&gt;&lt;br /&gt;Vi er en 3-mands gruppe, som er studerende på datamatiker uddanelsen på Københavns Erhvervs Akademi og vi skal lave vores 1. semester projekt. Vi skal i den forbindelse have kontakt til en virksomhed for at designe og konstruere noget software til denne. Vi vil have dermed hjælp til at få fat et netværk, der kan måske bruge det til noget.Vi skal selvfølgelig udvikle softwaren GRATIS da det er et eksamensprojekt og ikke et reelt job. Det er derfor en god mulighed da der ikke er nogen risiko for tab hvis det vælges ikke at bruge vores software i praksis. &lt;br /&gt;&lt;br /&gt;Vi har gennem hele 1. semester arbejdet med programmering i Java, UML-design og principper, Sql-database programmering og noget JSP web-programmering. &lt;br /&gt;&lt;br /&gt;Vi håber at vi kan høre fra nogle intressenter snarest muligt. Vi skal snart igang med projektet og vi har afleverings frist den 31.05.2017. &lt;br /&gt;&lt;br /&gt;Med venlig hilsen&lt;br /&gt;Datamatiker projektgruppen på KEA (Københavns Erhvervs Akademi).</description>
      <link>http://www.udvikleren.dk/forum/47159/datamatiker-1.-aars-projekt/</link>
      <pubDate>Fri, 28 Apr 2017 11:59:09 GMT</pubDate>
    </item>
    <item>
      <title>Java Programmering.</title>
      <description>Hej igen udviklerer! &lt;br /&gt;Jeg har nu brugt de sidste 2 - 3 år på at perfektionere (eller prøve i hvert fald) mine HTML/CSS, Javascript og PHP evner, og vil nu gerne videre til Java. Så jeg kan begynde at lave mig nogen lidt sjovere og optimerede applications. &lt;br /&gt;&lt;br /&gt;Jeg har tidligere skrevet i C/C++ og brugte den gang VS, men har siden da opbygget mig en kæmpe loyalitet til Sublime text, og er samtidig generelt ikke fan af ide'er. Så jeg kunne rigtig godt tænke mig at fortsætte med at bruge Sublime Text med Java. Hvilket jeg er godt igang med at lege rundt med, men jeg har lige et par spørgsmål, som jeg havde svært ved at finde svar på online.&lt;br /&gt;&lt;br /&gt;Først og fremmest så ville jeg elske hvis der var en som hurtigt ville forklare den basic Java "file import/include". Jeg ved at det måske er et lidt underligt request, men er van til include metoden brugt C,  og finder det en smule forvirrende med compiling af alle classes + packages osv. &lt;br /&gt;&lt;br /&gt;Mit næste spørgsmål er så, hvis jeg nu gerne vil skrive web applicationer, som har fx. chat eller det kunne være et multiplayer spil, hvor meget information sendes/modtages. Jeg ved at websockets er mere effektivt end httpXmlRequests, hvilket egentlig er grunden til min start på Java. Da jeg gerne vil kunne skrive mine egne servlets. Har prøvet at læse mig frem til det på diverse forums, og prøvet at finde tutorials på youtube, men da jeg stadig er noget usikker på det hele, har jeg bare forvirret mig selv endnu mere tror jeg. Så jeg er egentlig bare nysgerrig efter jeres præferencer osv. &lt;br /&gt;&lt;br /&gt;Mange tak på forhånd, &lt;br /&gt;Mvh. Wunder. </description>
      <link>http://www.udvikleren.dk/forum/47102/java-programmering/</link>
      <pubDate>Fri, 17 Feb 2017 02:26:41 GMT</pubDate>
    </item>
    <item>
      <title>Undervisning</title>
      <description>Hej med jer&lt;br /&gt;&lt;br /&gt;Da jeg lige om lidt skal til eksamen i programmering søger jeg en underviser, der i nogle timer via skype kan diskutere noget af det helt basale i java-programmering - objektorienteret programmering med mig, eksempelvis nedarvning, interfaces mv. &lt;br /&gt;&lt;br /&gt;Skriv en besked, hvis det har interesse og du har lyst til at undervise nogle timer virtuelt. &lt;br /&gt;Antallet af timer - er mere eller mindre op til dig, da alt kan bruges :-)&lt;br /&gt;&lt;br /&gt;Bedste hilsner&lt;br /&gt;Julie </description>
      <link>http://www.udvikleren.dk/forum/47064/undervisning/</link>
      <pubDate>Thu, 29 Dec 2016 09:22:15 GMT</pubDate>
    </item>
    <item>
      <title>Spil</title>
      <description>Hej med jer &lt;img src="/images/smileys/smiley.gif" alt=":)" title=":)" /&gt;&lt;br /&gt;&lt;br /&gt;Er netop i gang med at kode et spil, hvor der er nogle forskellige rum en spiller kan entrere. I et af rummene er der en trold, som spilleren skal dræbe for at komme videre - altså fortsætte til næste rum. Jeg har kodet således, at spilleren kan dræbe trolden men en udfordring er så, at så snart spilleren igen går tilbage til det rum, så er trolden igen at finde i rummet - både i form af rumbeskrivelsen og fordi trolden er ikke fjernet fra rummet.. &lt;br /&gt;&lt;br /&gt;Min kode i gameklassen ser ud som følgende nedenfor&lt;br /&gt;- og sådan som jeg tænker, det kan implementeres er at lave en remove-metode i room-klassen. Og så lave en if-sætning, hvor jeg siger noget a la: hvis trolden ikke er i live, så skal den flyttes (altså ved at bruge "!"). Samtidig vil jeg så ændre system.out.print således at trolden ikke nævnes når den er dræbt.  &lt;br /&gt;&lt;br /&gt;Jeg har følgende kode, som ses nedenfor, hvori jeg tænker, det skal implementeres, men alt jeg har forsøgt mig - hverken compiler eller fungerer, når jeg kører spillet. &lt;br /&gt;&lt;br /&gt;Mon én kan hjælpe? &lt;br /&gt;&lt;br /&gt;1): &lt;br /&gt;&lt;br /&gt;&lt;b&gt;I Gameklassen:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;    private void killOgre(Command command)&lt;br /&gt;    {&lt;br /&gt;        //If the player is not in the same room as the ogre - there is nothing to kill. &lt;br /&gt;        if(!player.getCurrentRoom().equals(ogre.getCurrentRoom()))&lt;br /&gt;        {&lt;br /&gt;            System.out.println("There is nothing to kill in this room");&lt;br /&gt;            return;&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;        //If the player does not have the bad, he cannot kill the ogre. &lt;br /&gt;        //Otherwise it is possible to kill the ogre. &lt;br /&gt;        if(player.getItem(bat.getName()) == null) &lt;br /&gt;        {&lt;br /&gt;            System.out.println("You cannot kill the orgre without a bat");&lt;br /&gt;            return;&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;        else {&lt;br /&gt;            System.out.println("You have now killed the ogre");&lt;br /&gt;            ogre.kill();&lt;br /&gt;        }&lt;br /&gt;        &lt;br /&gt;        &lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;2): &lt;b&gt;I room-klassen:&lt;/b&gt;&lt;br /&gt; /**&lt;br /&gt;&lt;br /&gt;     * This method adds a character to the HashMap. &lt;br /&gt;     */&lt;br /&gt;&lt;br /&gt;    public void addCharacter(Character name)&lt;br /&gt;    {&lt;br /&gt;        characters.add(name);&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    /** This method removes a character, when the player kills it. &lt;br /&gt;     */&lt;br /&gt;    &lt;br /&gt;    public void removeCharacter(Character character)&lt;br /&gt;    {&lt;br /&gt;        characters.remove(character);&lt;br /&gt;    }&lt;br /&gt;</description>
      <link>http://www.udvikleren.dk/forum/47045/spil/</link>
      <pubDate>Wed, 07 Dec 2016 10:09:39 GMT</pubDate>
    </item>
    <item>
      <title>Udvikling af spil i Java</title>
      <description>Hej med jer&lt;br /&gt;&lt;br /&gt;Jeg er helt grøn indenfor programmering og er nu på min kandidat ved at få kendskab til det helt basic i Java-programmering. I den forbindelse skal vi i min studiegruppe udvikle et spil i programmet BlueJ bestående af nogle forskellige rum, som en "player" kan gå ind i. Her er en af opgaverne, at vi skal indsætte nogle vilkårlige antal ting i rummet, hvor nogle kan samles op af spilleren og andre ikke kan, og hvor spilleren kan tage nogle ting med sig. Vi har forsøgt at finde hoved og hale i, hvordan dette løses men dog ikke knækket koden. Er der mon nogen, der har nogle fif eller gode links, der kan hjælpe os på vej? &lt;br /&gt;</description>
      <link>http://www.udvikleren.dk/forum/47026/udvikling-af-spil-i-java/</link>
      <pubDate>Wed, 16 Nov 2016 09:50:09 GMT</pubDate>
    </item>
    <item>
      <title>It-diplomingeniør studerende søger praktik</title>
      <description>Hej,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Jeg er en IT-ingeniør studerende, som søger en praktikplads i foråret 2017. Jeg er på mit 5. semester (ud af 7) og søger en praktikplads. Jeg har arbejdet med Java, Android, Unity, C# &amp; JSP. Jeg har prøvet at søge på Google samt sat mit CV i Jobindex, men jeg har desværre være uheldig. Er der nogen der muligvis kan hjælpe?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description>
      <link>http://www.udvikleren.dk/forum/47025/it-diplomingenioer-studerende-soeger-praktik/</link>
      <pubDate>Tue, 15 Nov 2016 23:01:30 GMT</pubDate>
    </item>
    <item>
      <title>Hjælp til at lave dokument om til .jar fil</title>
      <description>Hej Udvikleren&lt;br /&gt;&lt;br /&gt;Når jeg prøver at lave en .jar fil siger den:&lt;br /&gt;&lt;br /&gt;'jar' is not recognized as an internal or external command,&lt;br /&gt;operable program or batch file. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Jeg bruger kommandoen: jar cfm Calculator.jar Manifest.txt *&lt;br /&gt;Jeg har installeret Java SE Development Kit 8u111. Burde den ikke kunne gøre det?&lt;br /&gt;</description>
      <link>http://www.udvikleren.dk/forum/47014/hjaelp-til-at-lave-dokument-om-til-.jar-fil/</link>
      <pubDate>Sat, 22 Oct 2016 12:38:58 GMT</pubDate>
    </item>
    <item>
      <title>java exams projekt</title>
      <description>Hej. Jeg har et eksamensprojekt som jeg skal have lavet til efter jul, jeg er desværre ikke så god til at programmere (vi bruger programmet Bluej) men jeg ville rigtig gerne blive bedre, så mit spørgsmål er om der er nogen her, som ville hjælpe en universitets studerende til at forstå opgaven, og give lidt fif.&lt;br /&gt;&lt;br /&gt;mange hilsner Ramez Elhabet&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Dolphin swimming club&lt;br /&gt;&lt;br /&gt;The swimming club called "Dolphin" is a minor club which is on the rise. The club management would therefore like to have an administrative system developed for the management of membership information, membership fees, and swimming results.&lt;br /&gt;The club chairman is responsible for the administration of the entry of new members. When a new member enrols in the club, basic personal information including the person's age is registered. The member registration also includes information about the person's preferred activity form, i.e. active or passive membership, junior or senior swimmer, swimming for the exercise or elite swimmer.&lt;br /&gt;The club treasurer is responsible for all the details concerning membership fee payments. The fee size is determined by several factors. For active members, the fee for junior swimmers (below 18 years) is DKK 1,500 a year, for senior swimmers (18 years plus) it is DKK 2,200 a year. Members older than 60 years are granted a discount of 25% on the rate. For passive members the fee is DKK 600 a year. The fee is calculated and collected quarterly during the year. The treasurer has expressed a wish that the system is able to show a list of the members who have fallen behind with payments.&lt;br /&gt;The elite swimmers are assigned a coach. The elite swimmers have been divided into two teams according to age. The junior team is for swimmers below the age of 18. The senior team is for swimmers of the age of 18 or above. For each elite swimmer it is also registered within which swimming disciplines he or she is active.&lt;br /&gt;For each swimming discipline it is registered on an on-going basis what is the individual swimmer's best training result together with the date. For the swimmers who have entered competitions, the rally, the result, and the time is registered. The individual swimmer's results form the basis of decisions for the coach when selecting swimmers for participation in the competitions. The coach would therefore like to have an overview that shows the top 5 swimmers within each swimming discipline.</description>
      <link>http://www.udvikleren.dk/forum/47013/java-exams-projekt/</link>
      <pubDate>Thu, 20 Oct 2016 09:52:21 GMT</pubDate>
    </item>
    <item>
      <title>minHeap</title>
      <description>Hej alle&lt;br /&gt;&lt;br /&gt;Ved ikke om det er det rigtige sted jeg er kommet hen, men jeg prøver&lt;br /&gt;&lt;br /&gt;Jeg skal lave en algoritme som sortere heap.&lt;br /&gt;&lt;br /&gt;Lige nu har jeg et maxHeap, som sortere efter tallene er høj til lav, men vil gerne have lavet et minHeap, som skal sortere tallene efter lav til høj. &lt;br /&gt;&lt;br /&gt;Håber der er noget der kan hjælpe.&lt;br /&gt;&lt;br /&gt;PQHeap&lt;br /&gt;&lt;div class="codeboxheader" id="code_1787107810" onclick="ToggleCodeBox(this.id);"&gt;&lt;img id="code_1787107810_arrow" src="/images/icons/codeboxarrow_down.gif" alt="Fold kodeboks ind/ud" title="Fold kodeboks ind/ud" /&gt;Java kode&amp;nbsp;&lt;/div&gt;&lt;pre id="code_1787107810code" style="border-top: 0px; display: none;"&gt;&lt;ol&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;class&lt;/span&gt;&lt;span style="color: #000000;"&gt; PQHeap &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;implements&lt;/span&gt;&lt;span style="color: #000000;"&gt; PQ{&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    Element[] A;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; maxElms;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; PQHeap(&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; maxElms){&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        A &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;new&lt;/span&gt;&lt;span style="color: #000000;"&gt; Element[&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;];&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;this&lt;/span&gt;&lt;span style="color: #000000;"&gt;.maxElms &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; maxElms;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;void&lt;/span&gt;&lt;span style="color: #000000;"&gt; minHeapify(&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; i){&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; l &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; left(i);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; r &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; right(i);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; largest;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;if&lt;/span&gt;&lt;span style="color: #000000;"&gt;(l &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;lt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; A.length&lt;/span&gt;&lt;span style="color: #000000;"&gt;-&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[l].key &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[i].key){&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            largest &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; l;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        }&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;else&lt;/span&gt;&lt;span style="color: #000000;"&gt;{&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            largest &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; i;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;if&lt;/span&gt;&lt;span style="color: #000000;"&gt;(r &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;lt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; A.length&lt;/span&gt;&lt;span style="color: #000000;"&gt;-&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[r].key &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[largest].key){&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            largest &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; r;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;if&lt;/span&gt;&lt;span style="color: #000000;"&gt;(largest &lt;/span&gt;&lt;span style="color: #000000;"&gt;!=&lt;/span&gt;&lt;span style="color: #000000;"&gt; i){&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            Element temp &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[i];&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            A[i] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[largest];&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            A[largest] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; temp;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            minHeapify(largest);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; parent(&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; i){&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;return&lt;/span&gt;&lt;span style="color: #000000;"&gt; (i&lt;/span&gt;&lt;span style="color: #000000;"&gt;/&lt;/span&gt;&lt;span style="color: #000000;"&gt;2&lt;/span&gt;&lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; left(&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; i){&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;return&lt;/span&gt;&lt;span style="color: #000000;"&gt; (&lt;/span&gt;&lt;span style="color: #000000;"&gt;2&lt;/span&gt;&lt;span style="color: #000000;"&gt;*&lt;/span&gt;&lt;span style="color: #000000;"&gt;i);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; right(&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; i){&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;return&lt;/span&gt;&lt;span style="color: #000000;"&gt; ((&lt;/span&gt;&lt;span style="color: #000000;"&gt;2&lt;/span&gt;&lt;span style="color: #000000;"&gt;*&lt;/span&gt;&lt;span style="color: #000000;"&gt;i)&lt;/span&gt;&lt;span style="color: #000000;"&gt;+&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    @Override&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; Element extractMin() {&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        Element min &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;];&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        A[&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[A.length&lt;/span&gt;&lt;span style="color: #000000;"&gt;-&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;];&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        A &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; Arrays.copyOf(A, A.length&lt;/span&gt;&lt;span style="color: #000000;"&gt;-&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        minHeapify(&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;return&lt;/span&gt;&lt;span style="color: #000000;"&gt; min;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    @Override&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;void&lt;/span&gt;&lt;span style="color: #000000;"&gt; insert(Element e) {&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        A &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; Arrays.copyOf(A, (A.length&lt;/span&gt;&lt;span style="color: #000000;"&gt;+&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;));&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        A[A.length&lt;/span&gt;&lt;span style="color: #000000;"&gt;-&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; e;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;   &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; i &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; A.length&lt;/span&gt;&lt;span style="color: #000000;"&gt;-&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;while&lt;/span&gt;&lt;span style="color: #000000;"&gt;(i &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[parent(i)].key &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[i].key){&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            Element temp &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[i];&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            A[i] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; A[parent(i)];&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            A[parent(i)] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; temp;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            i &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; parent(i);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        minHeapify(&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Element&lt;br /&gt;&lt;div class="codeboxheader" id="code_1755957108" onclick="ToggleCodeBox(this.id);"&gt;&lt;img id="code_1755957108_arrow" src="/images/icons/codeboxarrow_down.gif" alt="Fold kodeboks ind/ud" title="Fold kodeboks ind/ud" /&gt;Java kode&amp;nbsp;&lt;/div&gt;&lt;pre id="code_1755957108code" style="border-top: 0px; display: none;"&gt;&lt;ol&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;class&lt;/span&gt;&lt;span style="color: #000000;"&gt; Element {&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; key;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; Object data;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; Element(&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; i, Object o) {&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;this&lt;/span&gt;&lt;span style="color: #000000;"&gt;.key &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; i;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;this&lt;/span&gt;&lt;span style="color: #000000;"&gt;.data &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; o;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;PQ&lt;br /&gt;&lt;div class="codeboxheader" id="code_2059605667" onclick="ToggleCodeBox(this.id);"&gt;&lt;img id="code_2059605667_arrow" src="/images/icons/codeboxarrow_down.gif" alt="Fold kodeboks ind/ud" title="Fold kodeboks ind/ud" /&gt;Java kode&amp;nbsp;&lt;/div&gt;&lt;pre id="code_2059605667code" style="border-top: 0px; display: none;"&gt;&lt;ol&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;interface&lt;/span&gt;&lt;span style="color: #000000;"&gt; PQ {&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; Element extractMin();&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;void&lt;/span&gt;&lt;span style="color: #000000;"&gt; insert(Element e);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/pre&gt;</description>
      <link>http://www.udvikleren.dk/forum/46895/minheap/</link>
      <pubDate>Thu, 17 Mar 2016 14:47:39 GMT</pubDate>
    </item>
    <item>
      <title>Hentning af brugernavn/kode fra server</title>
      <description>Hej&lt;br /&gt;&lt;br /&gt;Jeg er i gang med at "lege" med jsp, og er stødt i et problem, som forhindrer mig i at komme videre &lt;img src="/images/smileys/sad.gif" alt=":(" title=":(" /&gt;&lt;br /&gt;Jeg har en server, som jeg gerne vil hente noget fra. Jeg vil hente brugernavne/koder til at tjekke, når en prøver at logge ind på min side. Altså ligesom her på Udvikleren, så skal man skrive sit brugernavn/kode, og hvis ikke de findes i serveren, så kan man ikke logge ind. &lt;br /&gt;Problemet er, at jeg ikke helt ved, hvordan jeg skal gøre det. Jeg har prøvet at deklarere variablerne brugernavn og kode, men så mangler de at blive intialiseret, hvilket jeg ikke kan, da de skal komme fra serveren. Jeg har prøvet at sætte dem til null, men problemet her vil være, at så vil der tjekkes om brugernavn = null og kode = null findes i serveren, hvilket det ikke gør. &lt;br /&gt;Der er forbindelse til serveren.&lt;br /&gt;Hvad skal jeg gøre?&lt;br /&gt;&lt;br /&gt;JSP:&lt;br /&gt;&lt;div class="codeboxheader" id="code_1434605224" onclick="ToggleCodeBox(this.id);"&gt;&lt;img id="code_1434605224_arrow" src="/images/icons/codeboxarrow_down.gif" alt="Fold kodeboks ind/ud" title="Fold kodeboks ind/ud" /&gt;HTML kode&amp;nbsp;&lt;/div&gt;&lt;pre id="code_1434605224code" style="border-top: 0px; display: none;"&gt;&lt;ol&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #0000FF;"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="color: #FF00FF;"&gt;DOCTYPE html&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;html&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;head&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;title&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;Skiftkode&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;title&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;head&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;h1&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;Log ind&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;h1&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;body&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;form &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;method&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;=&amp;quot;post&amp;quot;&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; action&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;=&amp;quot;Skiftkode.jsp&amp;quot;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            Brugernavn (studienummer): &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;input &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;type&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;=&amp;quot;text&amp;quot;&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; name&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;=&amp;quot;brugernavn&amp;quot;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;br&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            Adgangskode: &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;input &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;type&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;=&amp;quot;password&amp;quot;&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; name&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;=&amp;quot;adgangskode&amp;quot;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;br&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;input &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;type&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;=&amp;quot;submit&amp;quot;&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; value&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;=&amp;quot;Log ind&amp;quot;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;form&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="background-color: #FFFF00; color: #000000;"&gt;&amp;lt;%&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                QName qname &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;=&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #0000FF;"&gt;new&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; QName(&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;http://soap.transport.brugerautorisation/&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;, &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;BrugeradminImplService&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                URL url &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;=&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #0000FF;"&gt;new&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; URL(&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;http://javabog.dk:9901/brugeradmin?wsdl&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                Service service &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;=&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; Service.create(url, qname);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                Brugeradmin ba &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;=&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; service.getPort(Brugeradmin.class);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;               &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                Bruger b &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;=&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; ba.hentBruger(brugernavn, kode); &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;//&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;Det er her jeg pr&amp;#248;ver at hente brugernavn&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;/&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;kode&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #0000FF;"&gt;String&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; bn, ak;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;//&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; hvis brugernavn&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;=&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;Jacob&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; og adgangskode&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;=&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;hemli&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; logges der ind.&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;//&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; dette burde selvf&amp;#248;lgelig hentes fra en database eller lign.&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                bn &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;=&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; request.getParameter(&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;brugernavn&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                ak &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;=&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; request.getParameter(&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;adgangskode&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #0000FF;"&gt;if&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; (brugernavn.equals(bn) &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; kode.equals(ak)) {&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                    &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;//&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; s&amp;#230;t attributten &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;logget ind&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; i sessionen&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                    session.setAttribute(&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;logget ind&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;, &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;ja&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                    out.println(&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;Du er logget korrekt ind.&amp;lt;br&amp;gt;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                } &lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #0000FF;"&gt;else&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt; {&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                    session.removeAttribute(&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;logget ind&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                    out.println(&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;Fejl&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="background-color: #F5F5F5; color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;                }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="background-color: #F5F5F5; color: #000000;"&gt;        &lt;/span&gt;&lt;span style="background-color: #FFFF00; color: #000000;"&gt;%&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;body&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;html&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Dette er interfacet, hvor metoden hentbruger er:&lt;br /&gt;&lt;div class="codeboxheader" id="code_584527427" onclick="ToggleCodeBox(this.id);"&gt;&lt;img id="code_584527427_arrow" src="/images/icons/codeboxarrow_down.gif" alt="Fold kodeboks ind/ud" title="Fold kodeboks ind/ud" /&gt;Java kode&amp;nbsp;&lt;/div&gt;&lt;pre id="code_584527427code" style="border-top: 0px; display: none;"&gt;&lt;ol&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;@WebService&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;interface&lt;/span&gt;&lt;span style="color: #000000;"&gt; Brugeradmin&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;{&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    @WebMethod Bruger hentBruger(String brugernavn, String adgangskode);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;     &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    @WebMethod Bruger &amp;#230;ndrAdgangskode(String brugernavn, String adgangskode, String nyAdgangskode);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    @WebMethod &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;void&lt;/span&gt;&lt;span style="color: #000000;"&gt; sendEmail(String brugernavn, String adgangskode, String emne, String tekst);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    @WebMethod &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;void&lt;/span&gt;&lt;span style="color: #000000;"&gt; sendGlemtAdgangskodeEmail(String brugernavn, String f&amp;#248;lgetekst);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    @WebMethod &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;void&lt;/span&gt;&lt;span style="color: #000000;"&gt; setEkstraFelt(String brugernavn, String adgangskode, String feltnavn, Object v&amp;#230;rdi);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    @WebMethod Object getEkstraFelt(String brugernavn, String adgangskode, String feltnavn);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/pre&gt;&lt;br /&gt;</description>
      <link>http://www.udvikleren.dk/forum/46877/hentning-af-brugernavn-kode-fra-server/</link>
      <pubDate>Fri, 04 Mar 2016 21:54:56 GMT</pubDate>
    </item>
    <item>
      <title>Vi søger en virksomhed der kan bruge et gratis system - Semesterprojekt datamatiker</title>
      <description>Vi er en gruppe på 4 personer der læser til datamatiker på 2. semester. Til vores semesterprojekt skal vi finde en virksomhed, som kunne bruge et nyt it-system. Det kan f.eks. være booking, lagerstyring, kassesystem eller noget helt andet Da systemet er et eksamensprojekt, er det ikke sikkert at det bliver helt færdigt og derfor er det helt gratis. Dette er en god mulighed for jer, fordi at hvis systemet ikke bliver brugt når vi er færdige med at udvikle det, er der ingen risiko for tab.&lt;br /&gt;Systemet bliver udviklet i java og Microsoft SQL.&lt;br /&gt;&lt;br /&gt;Vi håber på at høre fra jer hurtigst muligt, da vi snart skal i gang med projektet (1. marts 2016).&lt;br /&gt;&lt;br /&gt;Med venlig hilsen&lt;br /&gt;Anders Lichon Juel,&lt;br /&gt;Fríða Jakobsen,&lt;br /&gt;Helene Selmer Nielsen&lt;br /&gt;og Kasper Kiesbye Bendixen&lt;br /&gt;&lt;br /&gt;Datamatiker projektgruppe&lt;br /&gt;University College Nordjylland</description>
      <link>http://www.udvikleren.dk/forum/46853/vi-soeger-en-virksomhed-der-kan-bruge-et-gratis-system-semesterprojekt-datamatiker/</link>
      <pubDate>Mon, 08 Feb 2016 13:01:03 GMT</pubDate>
    </item>
    <item>
      <title>Android Secure API?</title>
      <description>Hej&lt;br /&gt;&lt;br /&gt;Har et spørgsmål ang. jeg gerne vil lave et API til en mobil app, men hvad er skikrest at bruge, jeg har HTTPS sat til, men er det sikkert at bruge BASIC Auth eller skal jeg bruge noget andet?&lt;br /&gt;&lt;br /&gt;/Jonathan</description>
      <link>http://www.udvikleren.dk/forum/46824/android-secure-api/</link>
      <pubDate>Fri, 15 Jan 2016 18:59:16 GMT</pubDate>
    </item>
    <item>
      <title>C# kursus</title>
      <description>Halløj,&lt;br /&gt;&lt;br /&gt;Jeg går pt. ledig som java udvikler. Jeg kan se at der er en del C# stillinger på nettet.&lt;br /&gt;&lt;br /&gt;Nogen der ved om der findes et "opgraderingskursus" for java-udviklere?&lt;br /&gt;&lt;br /&gt;Pfht,&lt;br /&gt;&lt;br /&gt;AÅ</description>
      <link>http://www.udvikleren.dk/forum/46797/c%23-kursus/</link>
      <pubDate>Thu, 24 Dec 2015 08:20:15 GMT</pubDate>
    </item>
    <item>
      <title>Kalender og helligdage</title>
      <description>Hej udviklere.&lt;br /&gt;&lt;br /&gt;Dette har ikke så meget med direkte programmering at gøre, men jeg håber stadig at nogen kan hjælpe &lt;img src="/images/smileys/smiley.gif" alt=":)" title=":)" /&gt;&lt;br /&gt;&lt;br /&gt;Jeg er ved at lave et slags budget-app som kan hjælpe til at styre privatøkonomien.&lt;br /&gt;&lt;br /&gt;Jeg skal bruge en funktion, som automatisk finder den sidste bankdag i en måned.&lt;br /&gt;Til det har jeg brug for at lave en række undtagelser.&lt;br /&gt;Lørdag og søndag er nemme at lave som undtagelser, men jeg mangler alle de faste datoer for danske helligdage, hvor man ikke får løn!&lt;br /&gt;&lt;br /&gt;Jeg kan nemt finde en liste over alle danske helligdage med en fast dato, men nogle af helligdagene er stadig en bankdag, og nogle er ikke.&lt;br /&gt;&lt;br /&gt;Er der nogen der kender et link til en oversigt over hvilke datoer på et år, som ikke tæller som bankdage, også selvom det ikke er lørdag eller søndag.&lt;br /&gt;&lt;br /&gt;På forhånd mange tak!&lt;br /&gt;&lt;br /&gt;EDIT:&lt;br /&gt;Efter lidt søgning kunne jeg så konstatere, at ikke-bankdagene veksler fra år til år, nogle gange uden noget konkret system.&lt;br /&gt;Jeg laver en database, og registrerer i stedet de banklukkede dage år for år, når de løbende bliver offentliggjort.&lt;br /&gt;&lt;br /&gt;Beklager mit lidt dumme spørgsmål og mangel på research... &lt;br /&gt;</description>
      <link>http://www.udvikleren.dk/forum/46767/kalender-og-helligdage/</link>
      <pubDate>Sat, 28 Nov 2015 18:18:17 GMT</pubDate>
    </item>
    <item>
      <title>NemID legitimations API til app?</title>
      <description>Hej folkens&lt;br /&gt;&lt;br /&gt;Jeg har ikke kunne finde nogen form for svar på mit spørgsmål på google. &lt;br /&gt;&lt;br /&gt;I hvert fald prøver jeg herinde.&lt;br /&gt;&lt;br /&gt;Er der nogen som kender til et API eller andet til sin app, som gør at ens brugere skal (eller i hvert fald, &lt;b&gt;kan&lt;/b&gt;) bekræfte sin identitet via NemID, lidt ligesom DBA: &lt;a href="http://sikkerhed.dba.dk/artikler/nemid/"&gt;http://sikkerhed.dba.dk/artikler/nemid/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;På forhånd tak,&lt;br /&gt;vh Sarcastiqor</description>
      <link>http://www.udvikleren.dk/forum/46749/nemid-legitimations-api-til-app/</link>
      <pubDate>Wed, 18 Nov 2015 08:14:16 GMT</pubDate>
    </item>
  </channel>
</rss>