<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>U-Labs Community - Java</title>
		<link>https://u-labs.de/forum/</link>
		<description>Fragen und Problem zu Java.</description>
		<language>de</language>
		<lastBuildDate>Fri, 01 May 2026 11:23:16 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>1</ttl>
		<image>
			<url>https://u-labs.de/forum/images/ulabs/misc/rss.png</url>
			<title>U-Labs Community - Java</title>
			<link>https://u-labs.de/forum/</link>
		</image>
		<item>
			<title><![CDATA[Game: KalOnline / Warteschleife hinzufügen [JavaScript]]]></title>
			<link>java-95/game-kalonline-warteschleife-hinzufuegen-javascript-40045?goto=newpost</link>
			<pubDate>Sun, 16 Jun 2019 13:47:34 GMT</pubDate>
			<description>Hallo liebe Community, 
 
Ich suche jemanden der mein Bruder helfen könnte beim JavaScript. Und zwar handelt es sich um das Game: KalOnline (RPG). Er...</description>
			<content:encoded><![CDATA[<div>Hallo liebe Community,<br />
<br />
Ich suche jemanden der mein Bruder helfen könnte beim JavaScript. Und zwar handelt es sich um das Game: KalOnline (RPG). Er hat bei einer Funktion probleme.<br />
Sagen wir mal so, er hat nen' Hack installiert. Der automatisch Mobs tötet und die fallen gelassene Items aufhebt. Das Problem bei dem ganzen ist, er wird jederzeit<br />
gesperrt.. wenn er das automatisch aufhebt. Weil der Hack das zu schnell macht. Folgendes wurde beigelegt von dem Entwickler:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Zitat:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			I found most of the bans come from spamming Teleport walking too much it spams it way too fast and instantly bans you I tried to add a &quot;await sleep(550) Promise&quot; but this didn't solve the ban issue it still bans you just much slower now.. I think need to add this &quot;await sleep(550)&quot; to pickup and other parts of t
			
		<hr />
	</div>
</div><div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">const sleep = ms =&gt; new Promise(res =&gt; setTimeout(res, ms));</code><hr />
</div>Da er nur den Hack &quot;PickUpDrop&quot; aktiviert, gehe davon aus.. das es auch der Source-Code vom ganzen ist.. wo das ganze übermittelt wird, was der Hack ausführen soll.<br />
PickUpDrop.js:<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJScript.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: js;">
const Daemon = require('./Daemon')<br />
const Drop = require('../data-store/Drop')<br />
const Point = require('../data-static/Point')<br />
const SendPackets = require('../send-packets/packets')<br />
const RecvPackets = require('../recv-packets/packets')<br />
const Utils = require('../use-cases/Utils')<br />
<br />
module.exports = class PickUpDrop extends Daemon {<br />
<br />
    isActive() {<br />
        return this.kalClient.settings.pickUpDrop<br />
    }<br />
<br />
    onTimeTick() {<br />
        if (!this.isActive() || !this.kalClient.settings.moveToDropsAround) return<br />
<br />
        const { dataStore, settings, socket, usecases } = this.kalClient<br />
        const { myPlayer, drops } = dataStore<br />
        if (!myPlayer || usecases.movelock) return<br />
<br />
        const position = usecases.GetMyPosition()<br />
        drops.forEach(drop =&gt; {<br />
            const distance = Utils.DistanceBetween(myPlayer, drop)<br />
            if (distance &gt; settings.maxPickRange &amp;&amp; distance &lt; settings.maxMoveToDropsRange) {<br />
                usecases.GoToTarget(drop)<br />
                SendPackets.PickUpDrop.drop(drop).send(socket, dataStore)<br />
            }<br />
        })<br />
        usecases.GoToTarget(position)<br />
    }<br />
<br />
    onSendPacketReaction(packet) {<br />
        if (!this.isActive()) return<br />
        if (packet instanceof SendPackets.PlayerMove) {<br />
            this.kalClient.usecases.PickDropsAroundMe()<br />
        }<br />
    }<br />
<br />
    onRecvPacketReaction(packet) {<br />
        if (!this.isActive()) return<br />
        if (packet instanceof RecvPackets.DropAppearPacket) {<br />
            this.kalClient.usecases.PickUpDrop(new Drop(packet.dropId, packet.dropX, packet.dropY))<br />
        }<br />
    }<br />
}
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
P.S. Sollte ich falsch liegen, verbessert mich ruhig bitte und ich veröffentlich den ganzen Hack.<br />
<br />
Ich weiß es kommt ein wenig blöd rüber, aber da ich keine Erfahrung sammeln konnte in Java und auch auf eigene Faust etwas ausprobiert habe, was leider gescheitert ist. Denke ich mal, das ich hier richtig bei euch bin.. weil einige von euch Erfahrung mit Javascript haben.<br />
<br />
Und zwar möchte ich, wenn die Mobs gekillt werden.. das er die Gegenstände bzw. Items die er fallen gelassen hat. Verzögert aufnehmen tut. Das heißt.. Mob gekillt, 2-3 Items fallen gelassen.. nun soll er 1 Item aufheben und die nächsten 2 Items im Abstand wie oben beschrieben ist aufheben.<br />
<br />
Könnte mir bitte wer dabei helfen?<br />
<br />
Dankeschön im vorraus! :-')<br />
<br />
#Thread Closed! - Wurde behoben.</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>sl33p</dc:creator>
			<guid isPermaLink="true">java-95/game-kalonline-warteschleife-hinzufuegen-javascript-40045</guid>
		</item>
		<item>
			<title>Abstraktion von Klassen und Methoden</title>
			<link>java-95/abstraktion-klassen-methoden-39647?goto=newpost</link>
			<pubDate>Sat, 16 Sep 2017 00:56:16 GMT</pubDate>
			<description><![CDATA[Hallo zusammen, 
 
hier zunächst folgender Code-Ausschnitt:  
 
 
public class RentalService { 
 
    private List<Car> cars = new ArrayList<>(); 
  ...]]></description>
			<content:encoded><![CDATA[<div>Hallo zusammen,<br />
<br />
hier zunächst folgender Code-Ausschnitt: <br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushCSharp.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: csharp;">
<br />
public class RentalService {<br />
<br />
    private List&lt;Car&gt; cars = new ArrayList&lt;&gt;();<br />
    private List&lt;Bike&gt; bikes = new ArrayList&lt;&gt;();<br />
<br />
    private List&lt;Client&gt; clients = new ArrayList&lt;&gt;();<br />
    private Map&lt;Client,List&lt;Car&gt;&gt; carsPerClient = new HashMap&lt;&gt;();<br />
    private Map&lt;Client,List&lt;Bike&gt;&gt; bikesPerClient = new HashMap&lt;&gt;();<br />
    <br />
<br />
    public int numberOfCars () {<br />
        return cars.size();<br />
    }<br />
<br />
    public int numberOfBikes () {<br />
        return bikes.size();<br />
    }<br />
   <br />
    public boolean rentACar (Client client, Car car) {       <br />
       if (client.age() &lt; car.getMinAge()) {<br />
            System.out.println (&quot;The minimum age to rent a car is &quot;+car.getMinAge());<br />
            return false;<br />
       }<br />
       if (!clients.contains (client)) {<br />
            System.out.println (&quot;Unknown client: &quot;+client);<br />
            return false;<br />
       }<br />
       if (!cars.contains(car)) {<br />
            System.out.println (&quot;Unknown car: &quot;+car);<br />
            return false;<br />
       }   <br />
       List&lt;Car&gt; carsOfClient = carsPerClient.get (client);<br />
       if (carsOfClient == null) {<br />
            carsOfClient = new ArrayList&lt;&gt;();<br />
            carsPerClient.put(client, carsOfClient);<br />
       }<br />
       carsOfClient.add (car);<br />
       return true;<br />
    }<br />
<br />
    public boolean rentABike (Client client, Bike bike) {<br />
        if (client.age() &lt; bike.getMinAge()) {<br />
            System.out.println (&quot;The minimum age to rent a biker is &quot;+bike.getMinAge());<br />
            return false;<br />
        }<br />
        if (!clients.contains (client)) {<br />
            System.out.println (&quot;Unknown client: &quot;+client);<br />
            return false;<br />
        }       <br />
        if (!bikes.contains(bike)) {<br />
            System.out.println (&quot;Unknown bike: &quot;+bike);<br />
            return false;<br />
        }<br />
        List&lt;Bike&gt; bikesOfClient = bikesPerClient.get (client);<br />
        if (bikesOfClient == null) {<br />
            bikesOfClient = new ArrayList&lt;&gt;();<br />
            bikesPerClient.put(client, bikesOfClient);<br />
        }<br />
        bikesOfClient.add (bike);<br />
        <br />
        return true;<br />
    }<br />
}
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
Schnell zu sehen ist, dass die Funktionen rentABike und rentACar redundanten Code besitzen. Um zu abstrahieren wurde für Bike und Car eine Oberklasse &quot;Vehicles&quot; geschaffen, die die in den Funktionen verwendeten Eigenschaften abbildet. Um nun auch eine abstrakte Funktion zu schreiben, habe ich folgenden Ansatz: <br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushCSharp.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: csharp;">
<br />
    public boolean rentACar (Client client, Car car) { <br />
       return rentAVehicle(client, car, this.carsPerClient, this.cars); // this nur, damit es für euch leichter ist zu erkennen, dass ich die privaten Variablen meine<br />
    }<br />
    <br />
    public boolean rentAVehicle(Client client, Vehicle vehicle, Map&lt;Client,List&lt;Vehicle&gt;&gt; vehiclesPerClient, List&lt;Vehicle&gt; vehicles) {<br />
       for (Client clientOfMap : vehiclesPerClient.keySet()) {<br />
           if (vehiclesPerClient.get(clientOfMap).contains(vehicle)) {<br />
               System.out.println(&quot;The vehicle &quot; + vehicle + &quot; is already rented by &quot; + clientOfMap);<br />
               return false;               <br />
           }<br />
       }            <br />
       if (client.age() &lt; vehicle.getMinAge()) {<br />
           System.out.println (&quot;The minimum age to rent a vehicle is &quot; + vehicle.getMinAge());<br />
           return false;<br />
       }<br />
       if (!clients.contains (client)) {<br />
           System.out.println (&quot;Unknown client: &quot;+client);<br />
           return false;<br />
       }     <br />
       if (!vehicles.contains(vehicle)) {<br />
           System.out.println (&quot;Unknown vehicle: &quot;+ vehicle);<br />
           return false;<br />
       }<br />
       <br />
       List&lt;Vehicle&gt; vehiclesOfClient = vehiclesPerClient.get(client);<br />
       if (vehiclesOfClient == null) {<br />
           vehiclesOfClient = new ArrayList&lt;&gt;();<br />
           vehiclesPerClient.put(client, vehiclesOfClient);<br />
       }<br />
       vehiclesOfClient.add(vehicle);<br />
       <br />
       return true;<br />
    }<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
Problem ist allerdings, dass sich die List&lt;Car&gt; nicht zu List&lt;Vehicle&gt; logischerweise konvertieren lässt. Wie könnte man die o.g. Funktionen abstrahieren? Operatoren wie instanceof sollten vermieden werden, auch Typen wie z.B &quot;? extends Vehicle&quot;.<br />
<br />
Über Anregungen würde ich mich sehr freuen!</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>aquastar</dc:creator>
			<guid isPermaLink="true">java-95/abstraktion-klassen-methoden-39647</guid>
		</item>
		<item>
			<title>Zugriff auf Hardware (außerhalb der VM)</title>
			<link>java-95/zugriff-hardware-ausserhalb-der-vm-38513?goto=newpost</link>
			<pubDate>Sat, 07 May 2016 19:50:03 GMT</pubDate>
			<description>Hallo Leute, 
ich möchte mit Java auf ein spezielles USB Interface zugreifen. An dieses Interface kann ich Daten schicken die entsprechend...</description>
			<content:encoded><![CDATA[<div>Hallo Leute,<br />
ich möchte mit Java auf ein spezielles USB Interface zugreifen. An dieses Interface kann ich Daten schicken die entsprechend verarbeitet werden und es gibt eine Rückmeldung.<br />
Auf der JAVA Seite habe ich verschiedene byte[] die zyklisch an das Interface gesendet werden sollen (bzw. auch empfangen).<br />
Momentan werden die Daten noch auf der Konsole ausgegeben.<br />
Wie kann ich in JAVA auf dieses USB Interface zugreifen und Daten senden bzw. empfangen?<br />
Vielen Dank für eure Hilfestellung</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>pss</dc:creator>
			<guid isPermaLink="true">java-95/zugriff-hardware-ausserhalb-der-vm-38513</guid>
		</item>
		<item>
			<title>Android Entwiklung, Große Daten aus apk auslagern</title>
			<link>java-95/android-entwiklung-grosse-daten-aus-apk-auslagern-37853?goto=newpost</link>
			<pubDate>Sun, 29 Nov 2015 23:40:34 GMT</pubDate>
			<description>Hallo miteinander, 
 
ich hab mal ne Frage zu Android. Und zwar befasse ich mich zurzeit mit der App Entwiklung in Android-Studio und das sieht schon...</description>
			<content:encoded><![CDATA[<div>Hallo miteinander,<br />
<br />
ich hab mal ne Frage zu Android. Und zwar befasse ich mich zurzeit mit der App Entwiklung in Android-Studio und das sieht schon mal nicht schlecht aus. <br />
Nun ist die Frage wie ich Große Ressourcen wie z.B. Videos aus der App &quot;Auslagern&quot; kann. Also ich möchte die Videos nicht direkt in die Apk packen weil die sonst ja viel zu groß werden würde.<br />
<br />
Man kennt das ja aus großen Games z.B. die apk im Store ist 20 MB groß und nachträglich werden nochmal 500 MB extra Runtergeladen (HD Grafiken etc). <br />
<br />
Bisher habe ich die Daten in einen Ressourcen Ordner gelegt und somit in die apk eingebunden; diese wird riesig und selbst beim debugen dauert es ewig.<br />
Wäre sehr nett wenn jemand dazu Helfen könnte. Wie macht ihr das so?  :)<br />
<br />
<br />
vielen dank schonmal und grüße</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>ano23</dc:creator>
			<guid isPermaLink="true">java-95/android-entwiklung-grosse-daten-aus-apk-auslagern-37853</guid>
		</item>
		<item>
			<title>Brauche Hilfe und Erklärung bei Aufgaben</title>
			<link>java-95/brauche-hilfe-erklaerung-bei-aufgaben-35630?goto=newpost</link>
			<pubDate>Tue, 09 Dec 2014 03:02:05 GMT</pubDate>
			<description>Hey ich hoffe jemand von euch kann mir weiterhelfen ich verstehe die Aufgaben nicht könnt ihr mir evtl. einen Ansatz geben? 
 
 
Es sei a = (a0, a1,...</description>
			<content:encoded><![CDATA[<div>Hey ich hoffe jemand von euch kann mir weiterhelfen ich verstehe die Aufgaben nicht könnt ihr mir evtl. einen Ansatz geben?<br />
<br />
<br />
Es sei a = (a0, a1, . . . , an&#8722;1) eine n-stellige Binärziffernfolge mit ai &#8712; {0, 1}. Die Ableitung<br />
von a ist die n-stellige Bin¨arziffernfolge b = (b0, b1, . . . , bn&#8722;1) mit bi &#8712; {0, 1}, deren Ziffern<br />
folgendermaßen entstehen.<br />
<br />
Für  i = 0, . . . n &#8722; 1 gilt: <br />
<br />
bi = 0 falls i = 0 und ai = 0<br />
bi = 0 falls i &gt; 0 und ai = ai&#8722;1<br />
bi = 1 sonst<br />
<br />
<br />
1. Was stellt die Ableitung da? D.h. wenn die Ableitung gegeben ist, welche Aussagen<br />
kann man dann über die abgeleitete Binärziffernfolge treffen?<br />
<br />
2. Gebenen Sie Java-Code einer rekursiven void-Methode an, die die Ableitung einer<br />
Bin¨arziffernfolge bestimmt.<br />
Unter den Parametern der Methode befindet sich genau ein Feld mit Bin¨arziffern.<br />
Dieses Feld wird mit jedem Methodenaufruf weitergereicht und w¨ahrend der Abarbeitung<br />
des Algorithmus mit der Ableitung uberschrieben. Die Methode verwendet, ¨<br />
neben dem ubergebenen Feld, kein weiteres Feld. ¨<br />
Wie sieht ein Aufruf der Methode aus?<br />
<br />
Hinweis. Durchlaufen Sie das Feld vom an&#8722;1 nach a0.<br />
3. Formulieren Sie eine Vorschrift fur die Umkehrung der Ableitung, d.h. eine Vorschrift, ¨<br />
die angibt, wie man aus einer gegebenen Ableitung die abgeleitete Binärziffernfolge<br />
bestimmt.<br />
<br />
4. Gebenen Sie Java-Code einer iterativen void-Methode an, die die Umkehrung einer<br />
Ableitung bestimmt, entsprechend der Vorschrift aus Aufgabenteil 3.<br />
Die Methode arbeitet auf der Eingabe, d.h. die ubergebene Binärziffernfolge wird<br />
w¨ahrend der Abarbeitung des Algorithmus mit der Umkehrung uberschrieben. Die ¨<br />
Methode verwendet, neben der Eingabe, kein weiteres Feld.<br />
<br />
Hinweis. Durchlaufen Sie das Feld vom a0 nach an&#8722;1.</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>triban1337</dc:creator>
			<guid isPermaLink="true">java-95/brauche-hilfe-erklaerung-bei-aufgaben-35630</guid>
		</item>
		<item>
			<title>Diverse Fragen zu Java</title>
			<link>java-95/diverse-fragen-zu-java-34715?goto=newpost</link>
			<pubDate>Wed, 01 Oct 2014 14:43:26 GMT</pubDate>
			<description>Hallo,  
 
 
kann mir einer vllt. mal erklären was eine Verkettung von Methoden ist?  
 
Außerdem stellen sich mir noch die Fragen wann man @Override...</description>
			<content:encoded><![CDATA[<div>Hallo, <br />
<br />
<br />
kann mir einer vllt. mal erklären was eine Verkettung von Methoden ist? <br />
<br />
Außerdem stellen sich mir noch die Fragen wann man @Override nutzt und was das Überschreiben von Methoden bedeutet. <br />
(Das am besten mithilfe einer abstrakten Oberklasse erklären)<br />
<br />
Ich hoffe jemand kann mir da  mal auf die Sprünge helfen. <br />
<br />
MfG</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Silidor</dc:creator>
			<guid isPermaLink="true">java-95/diverse-fragen-zu-java-34715</guid>
		</item>
		<item>
			<title>Bewegung eines Bleistifts - Android</title>
			<link>java-95/bewegung-eines-bleistifts-android-33900?goto=newpost</link>
			<pubDate>Fri, 25 Jul 2014 10:19:25 GMT</pubDate>
			<description>Hallo. 
Und zwar würde ich gerne einen Bleistift bewegen mittels zwei Fingern  
auf einem Smartphone. 
 
 
Die Pointer für die beiden Finger kann ich...</description>
			<content:encoded><![CDATA[<div>Hallo.<br />
Und zwar würde ich gerne einen Bleistift bewegen mittels zwei Fingern <br />
auf einem Smartphone.<br />
<br />
<br />
Die Pointer für die beiden Finger kann ich jetzt beide abfragen, klappt also soweit.<br />
<br />
Dennoch bleibt ein Problem mit der Höhe und der Neigung.<br />
<br />
<br />
Die Koordinaten der Höhe vom Bleistift könnte man doch eigentlich per<br />
<br />
X: (Pointer 1.X + Pointer 2.X) / 2 <br />
Y: (Pointer 1.Y + Pointer 2.Y) / 2 <br />
<br />
berechnen.<br />
<br />
Jetzt besteht aber immernoch die Frage , wie ich die gesamte Bewegung des Bleistifts hinbekomme,<br />
denn mir fehlt ja die Neigung.<br />
<br />
Ich hatte vor für den Bleistift ein ImageView zu nutzen und dieses jenach Touchevent Daten<br />
neu zu positionieren.<br />
<br />
Habt ihr eine Idee, wie man das lösen kann?</div>


	<div style="padding:10px">

	
		<fieldset class="fieldset">
			<legend>Miniaturansichten angehängter Grafiken</legend>
			<div style="padding:10px">
			
<a href="https://u-labs.de/forum/attachment.php?attachmentid=7933&amp;d=1406283556" 
rel="Lightbox_384990" id="attachment7933"
><img class="thumbnail" src="https://u-labs.de/forum/attachment.php?attachmentid=7933&amp;stc=1&amp;thumb=1&amp;d=1406283556" 
alt="Klicke auf die Grafik für eine größere Ansicht&nbsp;

Name:	Nueva.jpg&nbsp;
Hits:	-&nbsp;
Größe:	315,6 KB&nbsp;
ID:	7933"/></a>
&nbsp;

			</div>
		</fieldset>
	

	

	

	

	</div>
]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/bewegung-eines-bleistifts-android-33900</guid>
		</item>
		<item>
			<title>Java-App: Veränderungen an Cache-Datei verhindern</title>
			<link>java-95/java-app-veraenderungen-an-cache-datei-verhindern-33559?goto=newpost</link>
			<pubDate>Wed, 02 Jul 2014 16:45:18 GMT</pubDate>
			<description>Es geht um eine App, Ich möchte das beim start meine bearbeitete Datei geladen wird , Momentan wird sie aber immer wieder durch die Aktuelle Orginale...</description>
			<content:encoded><![CDATA[<div>Es geht um eine App, Ich möchte das beim start meine bearbeitete Datei geladen wird , Momentan wird sie aber immer wieder durch die Aktuelle Orginale ersetzt <br />
<br />
Die Datei die Geladen werden soll liegt im Ordner Cache<br />
<br />
Die App habe ich Entpackt , Die .dex habe ich in Java Konvertiert und habe nun eine art Quelltext.  <br />
<br />
Könnte sich jemand der Java kann, diese Datei eventuell mal ansehen &amp; mir sagen ob es möglich ist durch Änderung an dieser Datei eine Überprüfung der Cache Datei zu unterbinden ?<br />
<br />
Ich nehme mal ganz mutig an das : Der abschnitt der verändert werden muss jener ist welcher auch Cache heißt <br />
<br />
com-&gt;Playhaven-&gt;Android-&gt;Cache <br />
<br />
Ansehen kann man die Datei gut mit diesem Tool : JD-GUI <a href="http://jd.benow.ca/" target="_blank" rel="nofollow">Java Decompiler</a>( keine Installation benötigt )</div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Angehängte Dateien</legend>
			<ul>
			<li>
	<img class="inlineimg" src="https://u-labs.de/forum/images/attach/jar.gif" alt="Dateityp: jar" />
	<a href="https://u-labs.de/forum/attachment.php?attachmentid=7856&amp;d=1404319345">classes_dex2jar.jar</a> 
(3,17 MB)
</li>
			</ul>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Chrissy</dc:creator>
			<guid isPermaLink="true">java-95/java-app-veraenderungen-an-cache-datei-verhindern-33559</guid>
		</item>
		<item>
			<title>Android - Daten aus Web laden</title>
			<link>java-95/android-daten-aus-web-laden-33055?goto=newpost</link>
			<pubDate>Wed, 21 May 2014 21:48:53 GMT</pubDate>
			<description>Ich möchte aktuell Daten aus dem Internet laden. Dafür habe ich folgenden Code: 
 
 
public void LoadData() throws URISyntaxException, IOException {...</description>
			<content:encoded><![CDATA[<div>Ich möchte aktuell Daten aus dem Internet laden. Dafür habe ich folgenden Code:<br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
public void LoadData() throws URISyntaxException, IOException {<br />
    BufferedReader in = null;<br />
<br />
    try {<br />
        HttpClient client = new DefaultHttpClient();<br />
        URI website = new URI(CONST.API_URL);<br />
        HttpGet request = new HttpGet();<br />
        request.setURI(website);<br />
        HttpResponse response = client.execute(request);<br />
        response.getStatusLine().getStatusCode();<br />
<br />
        in = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));<br />
        StringBuffer sb = new StringBuffer(&quot;&quot;);<br />
        String l = &quot;&quot;;<br />
        String nl = System.getProperty(&quot;line.separator&quot;);<br />
        while ((l = in.readLine()) != null)<br />
            sb.append(l + nl);<br />
<br />
        String data = sb.toString();<br />
    } finally {<br />
        if (in != null) {<br />
            try {<br />
                in.close();<br />
            } catch (Exception e) {<br />
                e.printStackTrace();<br />
            }<br />
        }<br />
    }<br />
}<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
<br />
In CONST.API_URL steht die URL, die ich laden und danach analysieren möchte.<br />
<br />
Allerdings fliegt in der Zeile<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
HttpResponse response = client.execute(request);
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script> eine Exception vom Typ <font color="#993300"><b>android.os.NetworkOnMainThreadException</b></font>.<br />
<br />
Allerdings weiß ich nicht warum. Ich habe schon gegooglet und bin auf keine Lösung gekommen.<br />
<br />
In der AndroidManifest.xml ist folgende Zeile mit eingefügt:<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML-Code:</div>
	<hr /><code class="bbcode_code"><span style="color:#000080">&lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;</span></code><hr />
</div><br />
minSdkVersion ist 11.<br />
<br />
<br />
Kann mir jemand helfen? Wäre super nett hihio</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>xOneDirectionx</dc:creator>
			<guid isPermaLink="true">java-95/android-daten-aus-web-laden-33055</guid>
		</item>
		<item>
			<title>Java Fussballspiel Player-KI in der Bewegungsphase</title>
			<link>java-95/java-fussballspiel-player-ki-in-der-bewegungsphase-32944?goto=newpost</link>
			<pubDate>Mon, 12 May 2014 16:21:47 GMT</pubDate>
			<description>Hey Leute, 
Ich beschäftige mich derzeit mit einem kleinen Fussballspiel.Nun stehe ich vor einem dicken Problem: DIE PLAYER-KI.Ich habe schon vieles...</description>
			<content:encoded><![CDATA[<div>Hey Leute,<br />
Ich beschäftige mich derzeit mit einem kleinen Fussballspiel.Nun stehe ich vor einem dicken Problem: DIE PLAYER-KI.Ich habe schon vieles ausprobiert und auch schon einiges gebastelt was funktioniert:die Spieler laufen, Werte werden zugewiesen also das Gerüst steht, statisch kann ich alles machen.Selbst die Schuss-KI funktioniert und wenn ich Bewegungen komplett verweigere schießen sie sich zu falls das freie Schussfeld aufs Tor blockiert.Dies tun sie bis sie in Tornähe sind , dann hauen sie einfach drauf.Das problem stellt die LAUF-KI da hier einer meiner Versuche:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">private void movetoballphase(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; Point2D.Double ball_vel = getVelocity(playerposition, ballposition, speed*5); // Punkt wird ermittelt auf den sich der Plaer bei vorgegebenen Speed (Parameter 3) von Param.1 nach Param.2 bewegen muss wenn ein Tick stattfindet<br />
&nbsp; &nbsp; &nbsp; &nbsp; Random r = new Random(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; int Low = -30;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int High = 30;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int random1 = r.nextInt(High-Low) + Low; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (actionrec.contains(ball_vel)){&nbsp; //wenn sich der Ball in dem Actionrec also seinem Aufgabenbereich befindet soll er sich bewegen<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boolean inter = false; // bei jedem aufruf wird davon ausgegangen das der Player bei seiner Bewegung gegen nix gegenrennt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (CoreObject obj : Controller.getObjects()){ // nun wird für jedes Object im Controller eine Abfrage gestartet&nbsp; (Alle Player befinden sich darin))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (obj.Bound.contains(ball_vel) &amp;&amp; obj.getId() != 0 &amp;&amp; obj.getId() != id){ // wenn der neue Bewegungspunkt sich in einem Objektboundrectangle befinden sollte und es nicht der Ball/ID 0 ist und es nicht seine eigene Id ist <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inter = true; //dann hat eine Berührung stattgefunden<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break; //und die schleife wird vorzeitig beeendet<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (inter == false){ // sollte keine Berührung stattfinden <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (distanceTo(playerposition, ballposition) &lt;= 6){ //und die entfernung zum ball weniger als 6 pixel betragen<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.setBallownerid(id); //wird die Playerid als Ballbesitzer gesetzt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ballowner_teammate()){ //sollte nun aber ein Teamkamerad der Ballbesitzer sein (ermittelt anhand von id)) und es nicht er selbst sein<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; playerposition = new Point2D.Double(x,y); //wird zuerst die aktuelle Position ermittelt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ball.getBallownerid() != oldBallstate){ //sollte dann der Ballbesitzer sich seit dem letzten tick geändert haben<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; targetpoint =&nbsp; new Point2D.Double(ball.getX(),y-random1); //bewegt sich der Spieler auf höhe des Balls aber mit einem random abstand um Teammates nicht zu behindern<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oldBallstate = ball.getBallownerid(); // neuer Ballstatereminder wird gesetzt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Point2D.Double temptargetpoint = new Point2D.Double((int)ball.getX(),(int)playerposition.getY()); //nun wird der temptargetpoint gesetzt um zu prüfen ob die bewegung möglich ist damit der spieler nicht hin und her flimmert<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Point2D.Double tempcurrentpoint = new Point2D.Double((int)playerposition.getX(),(int)playerposition.getY()); //das selbe für die aktuelle position<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double difx = temptargetpoint.getX() - tempcurrentpoint.getX(); //nun werden die differencen gebildet<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double dify = temptargetpoint.getY() - tempcurrentpoint.getY();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( 5&lt;difx || difx&lt;-5 || 5&lt;dify || dify&lt;-5 ){ //sollten die Differenzen 5 größer&nbsp; oder 5 kleiner als 0 sein ist eine Bewegung erlaubt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; running = true; //running wird true gesetzt um die Laufanimation zu starten<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Point2D temppoint = getVelocity(playerposition, targetpoint, 5); //der nächste velocity point wird ermittelt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x= (float) temppoint.getX(); //die velocity wird angewendet<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y= (float) temppoint.getY(); //die velocity wird angewendet<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; running = false; //sollte die Bewegung verweigert worden sein wird running false gesetzt um die Animation zu stoppen und sonst geschieht nichts<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{ // sollte der Ballbesitzer kein Teammate sein<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; playerposition = new Point2D.Double(x,y); //wird zuerst die aktuelle Position ermittelt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; targetpoint =&nbsp; new Point2D.Double(ball.getX(),ball.getY()); //wird die aktuelle ballposition als Ziel gesetzt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Point2D.Double temptargetpoint = new Point2D.Double((int)ball.getX(),(int)ball.getY());&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //werden wie zuvor erst temppoints erstellt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Point2D.Double tempcurrentpoint = new Point2D.Double((int)playerposition.getX(),(int)playerposition.getY());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double difx = temptargetpoint.getX() - tempcurrentpoint.getX(); //die anschließend voneinander abgezogen werden<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; double dify = temptargetpoint.getY() - tempcurrentpoint.getY();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( 2&lt;difx || difx&lt;-2 || 2&lt;dify || dify&lt;-2 ){ //sollten die Differenzen 2 größer&nbsp; oder 2 kleiner als 0 sein ist eine Bewegung erlaubt (2 ist nur zum testen eingetragen)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; running = true; //laufanimation wird gestartet indem er auf running gesetzt wird<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Point2D temppoint = getVelocity(playerposition, targetpoint, 5); //der velocity point zum ball wird ermittelt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x= (float) temppoint.getX(); //die Velocity wird umgesetzt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y= (float) temppoint.getY();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; running = false;&nbsp; //sollte die Bewegung verweigert werden wid die Laufanimation gestoppt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{ //sollte doch eine Berührung stattgefunden haben war eigentlich ein random abprallen geplant was abber alles zerstört hat so sollte also garnichts passieren falls eine Berührung erwartet wird<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /*<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Random r = new Random();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int Low = -10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int High = 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.setX((float) (this.getX()+ r.nextInt(High-Low) + Low));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.setY((float) (this.getY()+ r.nextInt(High-Low) + Low));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ballowner_teammate()){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //TODO <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; running = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else { //sollte sich der Ball nichtmal im Aktionsfeld befinden <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; running = false; //wird nur rutienemäßig die Laufanimation auf false gesetzt<br />
&nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; }</code><hr />
</div>das Hauptproblem ist das ja alle beim Start auf den Ball zurennen und eigentlich alle Teamkameraden sofort auf Abstand gegen sollen wenn ein Teammitglied den Ball besitzt.Nun Frage ich euch :IDEEN? VERBESSERUNGSVORSCHLÄGE?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>UnknownUser</dc:creator>
			<guid isPermaLink="true">java-95/java-fussballspiel-player-ki-in-der-bewegungsphase-32944</guid>
		</item>
		<item>
			<title>Ratschlag für 2D-3D Engine für die Spieleentwicklung gesucht</title>
			<link>java-95/ratschlag-fuer-2d-3d-engine-fuer-spieleentwicklung-gesucht-32917?goto=newpost</link>
			<pubDate>Sat, 10 May 2014 15:35:46 GMT</pubDate>
			<description>Hallo zusammen, 
 
ich möchte ein 2D-Spiel schreiben. Dazu suche ich eine gute 2D- oder 3D-Engine und hoffe ich kann hier ein paar Tips bekommen . 
...</description>
			<content:encoded><![CDATA[<div>Hallo zusammen,<br />
<br />
ich möchte ein 2D-Spiel schreiben. Dazu suche ich eine gute 2D- oder 3D-Engine und hoffe ich kann hier ein paar Tips bekommen .<br />
<br />
Folgende Kandidaten stehen zur Auswahl:<br />
libgdx<br />
Slick2D | 2D Java Game Library<br />
jMonkeyEngine 3.0 | Java OpenGL Game EnginejMonkeyEngine 3.0<br />
<br />
Slick2D wird wohl nicht mehr richtig weiter entwickelt und bei libgdx weiß ich nicht genau was ich davon halten soll. jmonkeyengine macht bisher den besten Eindruck auf mich, auch wenn es eine 3D-Engine ist. <br />
<br />
Ich hab auch überlegt auf einen 2D/3D-Hybrid zu setzen. Z.B. eine 3D-Weltraumkarte mit rotierenden Planeten (es soll ein Weltraum-Strategie-Spiel werden) und 2D-Raumschiffen. Allerdings scheint die jmonkeyengine nicht gerade optimal für die 2D-Programmierung zu sein.<br />
<br />
Es gibt wohl auch das 'Sprite-Project' welches als 2D-Engine auf der jmonkeyengine aufsetzt aber noch nicht so weit entwickelt ist.<br />
<br />
<br />
Könnt ihr eine der Engines besonders empfehlen oder besonders davon abraten? Oder gibt es noch weitere Alternativen die ich bisher übersehen habe?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>UnknownUser</dc:creator>
			<guid isPermaLink="true">java-95/ratschlag-fuer-2d-3d-engine-fuer-spieleentwicklung-gesucht-32917</guid>
		</item>
		<item>
			<title>Grundsatzfragen zu Client-Server-Architektur / Matchmaking</title>
			<link>java-95/grundsatzfragen-zu-client-server-architektur-matchmaking-32911?goto=newpost</link>
			<pubDate>Sat, 10 May 2014 10:53:25 GMT</pubDate>
			<description>Hallo Leute, 
 
ich möchte ein kleines Multiplayerspiel umsetzen und versuche mir dazu eine geeignete Client-Server-Struktur zu überlegen. In einem...</description>
			<content:encoded><![CDATA[<div>Hallo Leute,<br />
<br />
ich möchte ein kleines Multiplayerspiel umsetzen und versuche mir dazu eine geeignete Client-Server-Struktur zu überlegen. In einem Match sollen stets 4 Spieler gegeneinander antreten welche vom Server per Matchmaking zusammengewürfelt werden sollen (vgl. mit dem Matchmaking von league of legends).<br />
<br />
Meine Überlegung ist nun, dass ich vom Server aus neue Prozesse (Java-Anwendungen / Server) starte, die das jeweilige Match betreuen. Wie kann ich nun die Clients an diese Server (gleiche IP) weitergeben? Benötigt jede Java-Anwendung / Server einen eigenen Port zur Identifizierung? Wie macht man das richtig / normalerweise?<br />
<br />
<br />
liebe Grüße,<br />
<br />
UnknownUser</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>UnknownUser</dc:creator>
			<guid isPermaLink="true">java-95/grundsatzfragen-zu-client-server-architektur-matchmaking-32911</guid>
		</item>
		<item>
			<title><![CDATA[[Android] Tabs erstellen]]></title>
			<link>java-95/android-tabs-erstellen-32903?goto=newpost</link>
			<pubDate>Fri, 09 May 2014 17:08:18 GMT</pubDate>
			<description>Hey Leute !  
Bin gerade dabei mich mit der Androidapp-Programmierung ein wenig auseinander zu setzen ..  
Ich hab halt vor, dass ich mehrere Tabs...</description>
			<content:encoded><![CDATA[<div>Hey Leute ! <br />
Bin gerade dabei mich mit der Androidapp-Programmierung ein wenig auseinander zu setzen .. <br />
Ich hab halt vor, dass ich mehrere Tabs habe. Um genau zu sein, sollen es genau 3 sein!<br />
Ausschauen sollte es ca so: <img src="https://u-labs.de/forum/attachment.php?attachmentid=7629&amp;d=1399655243" border="0" alt="Name:  android-tabs.jpg
Hits: 1256
Größe:  30,7 KB" class="thumbnail" style="float:CONFIG" /><br />
<br />
Nachdem ich nun schon einige Tutorials durch habe, aber dennoch gescheitert bin, suche ich nun hier eure Hilfe :-P<br />
<br />
Lg, Saad.</div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Angehängte Grafiken</legend>
				<div style="padding:10px">
				<img class="attach" src="https://u-labs.de/forum/attachment.php?attachmentid=7629&amp;stc=1&amp;d=1399655243" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Saad</dc:creator>
			<guid isPermaLink="true">java-95/android-tabs-erstellen-32903</guid>
		</item>
		<item>
			<title>main-Methode und Tread parallel ausführen</title>
			<link>java-95/main-methode-tread-parallel-ausfuehren-32897?goto=newpost</link>
			<pubDate>Fri, 09 May 2014 14:06:16 GMT</pubDate>
			<description>Hey, 
 
Ich habe mir, um das Thema Threads zu lernen, ein Programm geschrieben, dass bei Drücken der Eingabetaste anfängt sekündlich die aktuelle...</description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
Ich habe mir, um das Thema Threads zu lernen, ein Programm geschrieben, dass bei Drücken der Eingabetaste anfängt sekündlich die aktuelle Zeit auszugeben.<br />
Wenn ich wieder die Eingabetaste drücke soll es damit aufhören.<br />
<br />
Mein Problem ist jetzt das der Thread damit anfängt die Zeit auszugeben, aber nichtmehr damit aufhört da meine main-Methode nicht weiter ausgeführt wird oder auf mein &quot;t1.interrupt&quot; nicht reagiert. Ich weis es nicht wirklich.<br />
<br />
Daher meine Frage wie kriege ich es hin das ich meine Thread wieder anhalten kann.<br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
import Prog1Tools.*;<br />
import java.util.*;<br />
<br />
public class ZeitStoppen {<br />
    public static void main(String&#91;&#93; args) {<br />
        Threads t1 = new Threads();<br />
        //Threads t2 = new Threads();<br />
<br />
        IOTools.readLine(&quot;Eingabetaste drücken für ersten Thread&quot;);<br />
        Date start1 = new Date();<br />
        t1.start(start1, t1);<br />
        <br />
        /*IOTools.readLine(&quot;Eingabetaste drücken für zweiten Thread&quot;);<br />
        t2.start();<br />
        Date start2 = new Date();*/<br />
                <br />
        IOTools.readLine(&quot;Eingabetaste drücken zum Anhalten&quot;);<br />
        t1.interrupt();<br />
        Date stopp1 = new Date();<br />
        System.out.println(stopp1);<br />
<br />
        /*IOTools.readLine(&quot;Für Anhalten Eingabetaste drücken&quot;);<br />
        t2.interrupt();<br />
        Date stopp2 = new Date();<br />
        System.out.println(stopp2);*/<br />
    }<br />
<br />
    public static class Threads extends Thread{<br />
        private Date start1;<br />
        //private Date stopp1;<br />
        private Threads t1;<br />
        <br />
        public void start(Date start1, Threads t1) {<br />
            this.start1 = start1;<br />
            //this.stopp1 = stopp1;<br />
            this.t1        = t1;<br />
            run();<br />
        }<br />
<br />
        public void run() {<br />
            while(t1.isInterrupted() == false) {<br />
<br />
                String b = Thread.currentThread().getName();<br />
                System.out.println(&quot;&quot;+ b + start1);<br />
                start1 = new Date();<br />
    <br />
                try {<br />
                    sleep(1000);<br />
                }catch (InterruptedException e) {<br />
                    <br />
                }<br />
                //IOTools.readLine(&quot;Eingabetaste für Anhalten&quot;);<br />
                //t1.interrupt();<br />
                //System.out.println(stopp1);<br />
<br />
            }<br />
<br />
            }<br />
        }<br />
    }<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
Danke schonmal!<br />
<br />
<font color="#ff0000"><b>EDIT by DMW007: Beitrag ediert, bitte Sourcecode zukünftig direkt im jeweiligen BB-Code in den Thread posten, z.B. &#91;java&#93; für Java.</b></font></div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>UnknownUser</dc:creator>
			<guid isPermaLink="true">java-95/main-methode-tread-parallel-ausfuehren-32897</guid>
		</item>
		<item>
			<title>Rekursionsfunktion</title>
			<link>java-95/rekursionsfunktion-31815?goto=newpost</link>
			<pubDate>Mon, 07 Apr 2014 16:49:25 GMT</pubDate>
			<description>Hallo. 
 
Wir haben im Informatikunterricht Aufgaben bekommen und zwar diese: 
 
 
Anhang 7471...</description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
Wir haben im Informatikunterricht Aufgaben bekommen und zwar diese:<br />
<br />
<br />
<a href="https://u-labs.de/forum/attachment.php?attachmentid=7471&amp;d=1396889138" id="attachment7471" rel="Lightbox_0" ><img src="https://u-labs.de/forum/attachment.php?attachmentid=7471&amp;d=1396889138&amp;thumb=1" border="0" alt="Klicke auf die Grafik für eine größere Ansicht&nbsp;

Name:	Unbenannt.jpg&nbsp;
Hits:	384&nbsp;
Größe:	183,5 KB&nbsp;
ID:	7471" class="thumbnail" style="float:CONFIG" /></a><br />
<br />
Die jeweils erste Reihe ist der Index, dadrunter befindet sich das Ergebnis einer Rechnung.<br />
<br />
Schaut man bei Aufgabe 1) beispielsweise auf Index 4, so sieht man, dass als Resultat 15 herauskommen muss.<br />
<br />
Das ist natürlich mehr als simpel.<br />
<br />
<br />
Jetzt habe ich das versucht in Java umzusetzen, aber irgendwie klappt etwas mit der Rekursion nicht.<br />
<br />
<br />
Code:<br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
public int afunc(int n) {return afunc(n -1) * 2 + 1;}<br />
  public int bfunc(int n) {return bfunc(n -1) + 3;}<br />
  public int cfunc(int n) {return cfunc(n-1) * n;}<br />
<br />
  public void doindexberechnung()<br />
  {<br />
    jTextArea1.setText(String.valueOf(afunc(4)));<br />
  }
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
<br />
Fehler:<br />
<b>Exception in thread &quot;AWT-EventQueue-0&quot; java.lang.StackOverflowError</b><br />
<br />
<br />
Kann mir jemand sagen, was da schief läuft?</div>


	<div style="padding:10px">

	
		<fieldset class="fieldset">
			<legend>Miniaturansichten angehängter Grafiken</legend>
			<div style="padding:10px">
			
<a href="https://u-labs.de/forum/attachment.php?attachmentid=7471&amp;d=1396889138" 
rel="Lightbox_372796" id="attachment7471"
><img class="thumbnail" src="https://u-labs.de/forum/attachment.php?attachmentid=7471&amp;stc=1&amp;thumb=1&amp;d=1396889138" 
alt="Klicke auf die Grafik für eine größere Ansicht&nbsp;

Name:	Unbenannt.jpg&nbsp;
Hits:	-&nbsp;
Größe:	183,5 KB&nbsp;
ID:	7471"/></a>
&nbsp;

			</div>
		</fieldset>
	

	

	

	

	</div>
]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/rekursionsfunktion-31815</guid>
		</item>
		<item>
			<title>Rekursion (graphisch)</title>
			<link>java-95/rekursion-graphisch-31480?goto=newpost</link>
			<pubDate>Mon, 31 Mar 2014 18:26:17 GMT</pubDate>
			<description>Hallo. 
 
Ich habe hier einen Projektordner, in der ich eine Rekursion habe (grafisch). 
 
Jetzt wollte ich diese Rekursion auf eine neue Form...</description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
Ich habe hier einen Projektordner, in der ich eine Rekursion habe (grafisch).<br />
<br />
Jetzt wollte ich diese Rekursion auf eine neue Form auslagern, irgendwie scheitert es jedoch.<br />
<br />
Hier ist die Projektmappe, wo es funktioniert: <a href="https://u-labs.de/forum/attachment.php?attachmentid=7410&amp;d=1396295786"  title="Name:  Rekursionsbaum.zip
Hits: 227
Größe:  2,7 KB">Rekursionsbaum.zip</a><br />
<br />
Hier meine Projektmappe, die nicht funktioniert: <a href="https://u-labs.de/forum/attachment.php?attachmentid=7411&amp;d=1396295833"  title="Name:  Recc.zip
Hits: 212
Größe:  4,2 KB">Recc.zip</a><br />
<br />
Kann mir jemand sagen, was da schief läuft?</div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Angehängte Dateien</legend>
			<ul>
			<li>
	<img class="inlineimg" src="https://u-labs.de/forum/images/attach/zip.gif" alt="Dateityp: zip" />
	<a href="https://u-labs.de/forum/attachment.php?attachmentid=7410&amp;d=1396295786">Rekursionsbaum.zip</a> 
(2,7 KB)
</li><li>
	<img class="inlineimg" src="https://u-labs.de/forum/images/attach/zip.gif" alt="Dateityp: zip" />
	<a href="https://u-labs.de/forum/attachment.php?attachmentid=7411&amp;d=1396295833">Recc.zip</a> 
(4,2 KB)
</li>
			</ul>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/rekursion-graphisch-31480</guid>
		</item>
		<item>
			<title>Neuerungen in Java 8</title>
			<link>java-95/neuerungen-in-java-8-31232?goto=newpost</link>
			<pubDate>Fri, 21 Mar 2014 09:06:07 GMT</pubDate>
			<description>Hallo, 
 
seit kurzem steht der offizielle Release Candidate des JDK 8 von Oracle zum Download bereit. Ähnlich wie Version 1.5, führt die Version 8...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
seit kurzem steht der offizielle Release Candidate des JDK 8 von Oracle zum Download bereit. Ähnlich wie Version 1.5, führt die Version 8 neue Sprachmittel ein. Java soll nun die funktionale Programmierung besser unterstützen. Die wichtigsten Neuerungen sind imho die Lambda-Funktionen, Streams API und die Möglichkeit Defaultimplementationen in Interfaces, die vor Version 8 nur Signaturen und Konstanten enthalten durften,  anzubieten.<br />
<br />
Wer mehr über die Neuheiten in Java 8 erfahren möchte, dürfte <a href="http://www.techempower.com/blog/2013/03/26/everything-about-java-8/" target="_blank" rel="nofollow">diese Seite</a> momentan die beste Anlaufstelle sein.<br />
<br />
Letztlich zieht Java damit auf einen Stand, den andere Sprachen schon vor einigen Jahren hatten; bedingt durch mein Studium habe ich mit viel mit Java zu tun und werde später wohl auch beruflich mit Java zu kämpfen haben, aber wohl eher mit der EE Version.<br />
<br />
Wie sieht es bei euch aus? Wer programmiert in Java? Führt ihr das Upgrade auf Version 8 in naher Zukunft durch oder habt ihr Java von eurem System verbannt wegen der kürzlich aufgetretenen Serie von Sicherheitslücken?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Nuebel</dc:creator>
			<guid isPermaLink="true">java-95/neuerungen-in-java-8-31232</guid>
		</item>
		<item>
			<title>Lottozahlen - Auswertung , Methode hängt</title>
			<link>java-95/lottozahlen-auswertung-methode-haengt-31110?goto=newpost</link>
			<pubDate>Mon, 17 Mar 2014 12:06:36 GMT</pubDate>
			<description>Hallo. 
 
Ich habe ein Problem und zwar funktioniert die Lottozahlen - Auswertung meines Programmes nicht. 
 
Wenn ich ein Objekt der Lottoklasse...</description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
Ich habe ein Problem und zwar funktioniert die Lottozahlen - Auswertung meines Programmes nicht.<br />
<br />
Wenn ich ein Objekt der Lottoklasse erstelle , neue Zahlen generiere und dann die checkwin Methode aufrufe,<br />
bleibt das Programm dort irgendwie stecken.<br />
<br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
class Lotto<br />
  {<br />
    private int&#91;&#93; lottozahlen = new int&#91;7&#93;;<br />
    private int&#91;&#93; righttipped = new int&#91;7&#93;;<br />
    <br />
    <br />
    public int&#91;&#93; DoBubbleSort(int&#91;&#93; b)<br />
    {<br />
      boolean tau;<br />
      <br />
      do <br />
      {<br />
        tau = false;<br />
        <br />
        for (int i = 0; i &lt; b.length - 1; i++) <br />
        {<br />
          <br />
          if (b&#91;i&#93; &gt; b&#91;i + 1&#93;) <br />
          {<br />
            int t = b&#91;i&#93;;<br />
            b&#91;i&#93; = b&#91;i + 1&#93;;<br />
            b&#91;i + 1&#93; = t;<br />
            tau = true;<br />
          }<br />
          <br />
        }<br />
      } while (tau);<br />
      <br />
      return b;<br />
    }<br />
    <br />
    public String getZahlenString()<br />
    {<br />
      String c = &quot;&quot;;<br />
      for (int i = 0;i &lt; lottozahlen.length ; i++)<br />
      {<br />
        c = c + Integer.toString(lottozahlen&#91;i&#93;);<br />
        if(i &lt; lottozahlen.length -1) c  = c + &quot; ;&quot; ;<br />
      }<br />
      return c;<br />
    }<br />
    <br />
    private boolean checkifexists(int a)<br />
    {<br />
      for(int i = 0; i &lt; lottozahlen.length -1 ; i++)<br />
      {<br />
        if(lottozahlen&#91;i&#93; == a) return true;<br />
      }<br />
      return false;<br />
    }<br />
    <br />
    <br />
    private int getrandomdigit()<br />
    {<br />
      Random zufall = new Random();<br />
      int z = zufall.nextInt(49);<br />
      while(checkifexists(z) &amp;&amp; z &gt; 0){z = zufall.nextInt(49);}<br />
      return z;<br />
    }<br />
    public int&#91;&#93; getnewdigits()<br />
    {<br />
      for(int i = 0; i &lt; lottozahlen.length -1 ; i++) {lottozahlen&#91;i&#93; = getrandomdigit();}<br />
      lottozahlen&#91;6&#93; = getrandomdigit();<br />
      lottozahlen = DoBubbleSort(lottozahlen);<br />
      return lottozahlen;<br />
    }<br />
    <br />
    <br />
    <br />
    <br />
    <br />
    public int&#91;&#93; checkwin(int&#91;&#93; a)<br />
    {<br />
      int right = 0;<br />
      int&#91;&#93; t = DoBubbleSort(a);<br />
      <br />
      for (int x = 0; x &lt; 7; x++) <br />
      {<br />
        if (t&#91;x&#93; == lottozahlen&#91;x&#93;) <br />
        {<br />
          right++;<br />
          righttipped&#91;x&#93; = t&#91;x&#93;;<br />
        }<br />
        else<br />
        {<br />
          righttipped&#91;x&#93; = -1;<br />
         } <br />
      <br />
      }<br />
      <br />
      <br />
  <br />
      int&#91;&#93; tog = new int&#91;right&#93;;<br />
      for (int c = 0;c &lt; right; c++) <br />
      {<br />
        if( !(righttipped&#91;c&#93; == -1)) tog&#91;c&#93; = righttipped&#91;c&#93;;<br />
      }<br />
      <br />
      return tog;  <br />
    }<br />
  }
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
<br />
Aufruf:<br />
<br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
 public void Ziehung_ActionPerformed(ActionEvent evt) <br />
  {<br />
    if (! (CurrentTip.getText().length() &gt;= 7))<br />
    {<br />
      LottozahlenErgebnis.setText(&quot;Erst muss getippt werden!&quot;);<br />
      return; <br />
    }<br />
    <br />
    Lotto L = new Lotto();<br />
    int&#91;&#93; d = L.getnewdigits();<br />
    <br />
    String gezogen = d&#91;0&#93; + &quot;   &quot; + d&#91;1&#93; + &quot;   &quot; + d&#91;2&#93; + &quot;   &quot; + d&#91;3&#93; + &quot;   &quot; + d&#91;4&#93; + &quot;   &quot; + d&#91;5&#93; + &quot;        SZ: &quot;  + d&#91;6&#93;;<br />
    LottozahlenZiehung.setText(gezogen);<br />
    <br />
    int&#91;&#93; z = L.checkwin(gesetztezahlen);<br />
    <br />
    String rightt = z&#91;0&#93; + &quot;   &quot; + z&#91;1&#93; + &quot;   &quot; + z&#91;2&#93; + &quot;   &quot; + z&#91;3&#93; + &quot;   &quot; + z&#91;4&#93; + &quot;   &quot; + z&#91;5&#93; + &quot;        SZ: &quot;  + z&#91;6&#93;;<br />
    LottozahlenErgebnis.setText(&quot;Richtige Zahlen: &quot; + z.length);<br />
  } 
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
<br />
Bei L.Checkwin(gesetztezahlen); geht es nicht weiter, weshalb im Label auch nicht &quot;Richtige Zahlen: ... steht.<br />
<br />
Kann mir jemand etwas dazu sagen?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/lottozahlen-auswertung-methode-haengt-31110</guid>
		</item>
		<item>
			<title>Regex - Prüfen ob Ziffer in String vorhanden</title>
			<link>java-95/regex-pruefen-ob-ziffer-in-string-vorhanden-31095?goto=newpost</link>
			<pubDate>Sun, 16 Mar 2014 20:44:32 GMT</pubDate>
			<description>Hallo. 
 
Ich würde gerne prüfen, ob eine Ziffer in einem String vorhanden ist. 
 
-CurrentTip ist ein TextField 
-Ich kann Regexpattern bilden, aber...</description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
Ich würde gerne prüfen, ob eine Ziffer in einem String vorhanden ist.<br />
<br />
-CurrentTip ist ein TextField<br />
-Ich kann Regexpattern bilden, aber irgendwie bin ich mir nicht sicher,<br />
ob man das mit .matches machen kann.<br />
<br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
 if (! (CurrentTip.getText().matches(&quot;\\d&quot;)))<br />
    {<br />
      LottozahlenZiehung.setText(&quot;Erst muss getippt werden!&quot;);<br />
      return; <br />
    } <br />
<br />
//WeitererCode , der ausgeführt wird, wenn eine Zahl vorkommt<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
Kann mir jemand was dazu sagen?<br />
Es kommt immer false raus.</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/regex-pruefen-ob-ziffer-in-string-vorhanden-31095</guid>
		</item>
		<item>
			<title>JavaEditor - JComboBoxen nebeneinander</title>
			<link>java-95/javaeditor-jcomboboxen-nebeneinander-31074?goto=newpost</link>
			<pubDate>Sun, 16 Mar 2014 11:46:43 GMT</pubDate>
			<description>Hallo. 
 
Ich würde gerne 7 JComboBoxen nebeneinander platzieren. 
Ich arbeite mit Java-Editor. 
 
Das Ziel ist es , einen Lottotipp erstellen zu...</description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
Ich würde gerne 7 JComboBoxen nebeneinander platzieren.<br />
Ich arbeite mit Java-Editor.<br />
<br />
Das Ziel ist es , einen Lottotipp erstellen zu können, das<br />
heißt 6 Zahlen und Zusatzzahl.<br />
<br />
Die Zahlen dürfen nur von 1-49 sein und jede<br />
ComboBox muss natürlich eine andere Zahl zulassen können,<br />
was nicht funktioniert, wenn man einem Panel alle ComboBoxen zuordnet.<br />
<br />
<br />
<br />
Der Codeausschnit sieht derzeit dafür so aus:<br />
<br />
  <script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
public void createit()<br />
  {<br />
    DefaultComboBoxModel model = new DefaultComboBoxModel(&quot;1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49&quot;.split(&quot;,&quot;));<br />
    JComboBox box1 = new JComboBox(model);<br />
    JComboBox box2 = new JComboBox(model);<br />
    JComboBox box3 = new JComboBox(model);<br />
    JComboBox box4 = new JComboBox(model);<br />
    JComboBox box5 = new JComboBox(model);<br />
    JComboBox box6 = new JComboBox(model);<br />
    JComboBox boxsz = new JComboBox(model);<br />
<br />
  int w = 40;<br />
    int h = 20;<br />
    <br />
    box1.setBounds(1 , 1 , w , h);<br />
    box2.setBounds(81 , 1 , w, h);<br />
    box3.setBounds(122, 1 , w, h);<br />
    box4.setBounds(163 , 1 , w , h);<br />
    box5.setBounds(204, 1 , w, h);<br />
    box6.setBounds(245, 1 , w, h);<br />
    boxsz.setBounds(286 , 1 , w , h);<br />
    <br />
<br />
    <br />
    box1.setPrototypeDisplayValue(&quot;49&quot;);<br />
    box2.setPrototypeDisplayValue(&quot;49&quot;);<br />
    box3.setPrototypeDisplayValue(&quot;49&quot;);<br />
    box4.setPrototypeDisplayValue(&quot;49&quot;);<br />
    box5.setPrototypeDisplayValue(&quot;49&quot;);<br />
    box6.setPrototypeDisplayValue(&quot;49&quot;);<br />
    boxsz.setPrototypeDisplayValue(&quot;49&quot;);<br />
    <br />
    <br />
    <br />
    JPanel BoxP1 = new JPanel();<br />
    BoxP1.setLayout(new GridLayout(0, 1, 0, 0));<br />
    BoxP1.add(box1);<br />
    <br />
    JPanel BoxP2 = new JPanel();<br />
    BoxP2.setLayout(new GridLayout(0, 1, 0, 0));<br />
    BoxP2.add(box1);<br />
    <br />
    JPanel BoxP3 = new JPanel();<br />
    BoxP3.setLayout(new GridLayout(0, 1, 0, 0));<br />
    BoxP3.add(box1);<br />
    <br />
    JPanel BoxP4 = new JPanel();<br />
    BoxP4.setLayout(new GridLayout(0, 1, 0, 0));<br />
    BoxP4.add(box1);<br />
    <br />
    JPanel BoxP5 = new JPanel();<br />
    BoxP5.setLayout(new GridLayout(0, 1, 0, 0));<br />
    BoxP5.add(box1);<br />
    <br />
    JPanel BoxP6 = new JPanel();<br />
    BoxP6.setLayout(new GridLayout(0, 1, 0, 0));<br />
    BoxP6.add(box1);<br />
    <br />
    JPanel BoxPsz = new JPanel();<br />
    BoxPsz.setLayout(new GridLayout(0, 1, 0, 0));<br />
    BoxPsz.add(box1);<br />
    <br />
    <br />
    <br />
    <br />
    JFrame frame = new JFrame();<br />
    frame.setResizable(false);<br />
    frame.setLayout(new GridLayout(1, 7, 10, 10));<br />
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br />
    frame.add(BoxP1);<br />
    frame.add(BoxP2);<br />
    frame.add(BoxP3);<br />
    frame.add(BoxP4);<br />
    frame.add(BoxP5);<br />
    frame.add(BoxP6);<br />
    frame.add(BoxPsz);   <br />
    frame.pack();<br />
    frame.setLocation(300, 300);<br />
    frame.setVisible(true);<br />
    <br />
  }
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
Derzeit sieht es leider nur so aus : <img src="https://u-labs.de/forum/attachment.php?attachmentid=7244&amp;d=1394970401" border="0" alt="Name:  Unbenannt.PNG
Hits: 872
Größe:  1,4 KB" class="thumbnail" style="float:CONFIG" /><br />
Wie bekomme ich es hin, dass die nebeneinander kommen?</div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Angehängte Grafiken</legend>
				<div style="padding:10px">
				<img class="attach" src="https://u-labs.de/forum/attachment.php?attachmentid=7244&amp;stc=1&amp;d=1394970401" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/javaeditor-jcomboboxen-nebeneinander-31074</guid>
		</item>
		<item>
			<title>Java Applet ist leer</title>
			<link>java-95/java-applet-ist-leer-29593?goto=newpost</link>
			<pubDate>Thu, 06 Feb 2014 18:41:59 GMT</pubDate>
			<description>Hey, und zwar habe ich ein Problem, dass wenn ich mein Java Programm starte, nur ein Apple kommt aber das Programm an sich nicht läuft. 
Vllt könnte...</description>
			<content:encoded><![CDATA[<div>Hey, und zwar habe ich ein Problem, dass wenn ich mein Java Programm starte, nur ein Apple kommt aber das Programm an sich nicht läuft.<br />
Vllt könnte einer mal drüberschauen, wäre echt nett!<br />
<br />
<img src="https://u-labs.de/forum/attachment.php?attachmentid=6438&amp;d=1391712115" border="0" alt="Name:  HAFph.png
Hits: 544
Größe:  14,3 KB" class="thumbnail" style="float:CONFIG" /><br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
package katze;<br />
 import java.awt.*;<br />
import java.applet.Applet;<br />
<br />
public class katze extends java.applet.Applet implements Runnable {<br />
<br />
  Image katzeBild&#91;&#93; = new Image&#91;9&#93;;<br />
  Image currentImg;<br />
  Thread laufen;<br />
  int x;<br />
  int y = 50;<br />
<br />
  public void init() {<br />
  String katzeSrc&#91;&#93; = { &quot;rechts1.gif&quot;, &quot;rechts2.gif&quot;,<br />
    &quot;steh.gif&quot;, &quot;gaehn.gif&quot;, &quot;kratz1.gif&quot;,<br />
    &quot;kratz2.gif&quot;,&quot;schlaf1.gif&quot;, &quot;schlaf2.gif&quot;,<br />
    &quot;aufwachen.gif&quot; };<br />
<br />
  for (int i=0; i &lt; katzeBild.length; i++) {<br />
    katzeBild&#91;i&#93; = getImage(getCodeBase(),&quot;bilder/&quot; + katzeSrc&#91;i&#93;);<br />
    }<br />
  }<br />
<br />
  public void start() {<br />
    if (laufen == null) {<br />
      laufen = new Thread(this);<br />
      laufen.start();<br />
    }<br />
  }<br />
<br />
  public void stop() {<br />
    if (laufen != null){<br />
      laufen.stop();<br />
      laufen = null;<br />
    }<br />
  }<br />
<br />
  public void run() {<br />
    setBackground(Color.white);<br />
    // von rechts bis zur Bildmitte laufen<br />
    katzeRennen(0, getSize().width / 2);<br />
    // stehen bleiben<br />
    currentImg = katzeBild&#91;2&#93;;<br />
    repaint();<br />
    pause(1000);<br />
    // gähnen<br />
   currentImg = katzeBild&#91;3&#93;;<br />
    repaint();<br />
    pause(1000);<br />
    // sich kratzen<br />
    katzeKratzen(4);<br />
    // schlafen<br />
    katzeSchlafen(5);<br />
    // aufwachen und wegrennen<br />
    currentImg = katzeBild&#91;8&#93;;<br />
    repaint();<br />
    pause(500);<br />
    katzeRennen(x, getSize().width + 10);<br />
 }<br />
<br />
  void katzeRennen(int start, int end) {<br />
    for (int i = start; i &lt; end; i += 10) {<br />
      x = i;<br />
      // Bilder austauschen<br />
      if (currentImg == katzeBild&#91;0&#93;) currentImg = katzeBild&#91;1&#93;;<br />
        else currentImg = katzeBild&#91;0&#93;;<br />
      repaint();<br />
      pause(150);<br />
   }<br />
 }<br />
<br />
  void katzeKratzen(int anzahl) {<br />
    for (int i = anzahl; i &gt; 0; i--) {<br />
      currentImg = katzeBild&#91;4&#93;;<br />
      repaint();<br />
      pause(150);<br />
      currentImg = katzeBild&#91;5&#93;;<br />
      repaint();<br />
      pause(150);<br />
    }<br />
  }<br />
<br />
  void katzeSchlafen(int anzahl) {<br />
    for (int i = anzahl; i &gt; 0; i--) {<br />
      currentImg = katzeBild&#91;6&#93;;<br />
      repaint();<br />
      pause(250);<br />
      currentImg = katzeBild&#91;7&#93;;<br />
      repaint();<br />
      pause(250);<br />
    }<br />
  }<br />
<br />
  void pause(int time) {<br />
    try {<br />
      Thread.sleep(time);<br />
    } catch (InterruptedException e) { }<br />
  }<br />
<br />
  public void paint(Graphics g) {<br />
    if (currentImg != null)<br />
      g.drawImage(currentImg, x, y, this);<br />
  }<br />
}
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script></div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Angehängte Grafiken</legend>
				<div style="padding:10px">
				<img class="attach" src="https://u-labs.de/forum/attachment.php?attachmentid=6438&amp;stc=1&amp;d=1391712115" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>FaNNboii</dc:creator>
			<guid isPermaLink="true">java-95/java-applet-ist-leer-29593</guid>
		</item>
		<item>
			<title>Was ist der Unterschied zwischen != und =!</title>
			<link>java-95/was-ist-der-unterschied-zwischen-29508?goto=newpost</link>
			<pubDate>Sun, 02 Feb 2014 00:33:05 GMT</pubDate>
			<description>Guten Tag! 
 
Ich habe in einem Sourcecode in einem anderen Forum gesehen, dass jemand =! statt != benutzt hat. Ich konnte nicht verstehen was =!...</description>
			<content:encoded><![CDATA[<div>Guten Tag!<br />
<br />
Ich habe in einem Sourcecode in einem anderen Forum gesehen, dass jemand =! statt != benutzt hat. Ich konnte nicht verstehen was =! bedeuten soll also habe ich es selbst probiert<br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
boolean b = false;<br />
System.out.println((b != b)); //Gibt false aus<br />
System.out.println((b =! b)); //Gibt true aus<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
Was macht also =! und wie nennt man den Operator eigentlich?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Dose</dc:creator>
			<guid isPermaLink="true">java-95/was-ist-der-unterschied-zwischen-29508</guid>
		</item>
		<item>
			<title>Java Rechnung (525079 % 51245 + 525079 % 913)</title>
			<link>java-95/java-rechnung-525079-51245-525079-913-29168?goto=newpost</link>
			<pubDate>Thu, 09 Jan 2014 16:21:22 GMT</pubDate>
			<description>Hi. 
 
Kann mir jemand verraten wie folgende Rechnung (in Java geschrieben) berechnet wird? 
 
(525079 % 51245 + 525079 % 913) sollte irgenwie 12733...</description>
			<content:encoded><![CDATA[<div>Hi.<br />
<br />
Kann mir jemand verraten wie folgende Rechnung (in Java geschrieben) berechnet wird?<br />
<br />
(525079 % 51245 + 525079 % 913) sollte irgenwie 12733 ergeben aber wie?<br />
<br />
irgendwie bin ich zu doof dafür :)<br />
<br />
mfg</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Bady</dc:creator>
			<guid isPermaLink="true">java-95/java-rechnung-525079-51245-525079-913-29168</guid>
		</item>
		<item>
			<title>Java: Hauptklasse-Client konnte nicht gefunden werden</title>
			<link>java-95/java-hauptklasse-client-konnte-nicht-gefunden-werden-28712?goto=newpost</link>
			<pubDate>Sun, 15 Dec 2013 13:59:30 GMT</pubDate>
			<description>Hallo Community, 
 
Ich habe versucht den KDynamic zum laufen zu kriegen und habe bereits die Variablen gesetzt aber es erscheint immer dieser Fehler...</description>
			<content:encoded><![CDATA[<div>Hallo Community,<br />
<br />
Ich habe versucht den KDynamic zum laufen zu kriegen und habe bereits die Variablen gesetzt aber es erscheint immer dieser Fehler :<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Zitat:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			C:\WINDOWS\system32&gt;java -cp KDynamic.jar Client 127.0.0.1 2710<br />
Fehler: Hauptklasse Client konnte nicht gefunden oder geladen werden... 
			
		<hr />
	</div>
</div>Was kann ich nun dagegen tun?<br />
<br />
Brauche hilfe :)</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Bazs</dc:creator>
			<guid isPermaLink="true">java-95/java-hauptklasse-client-konnte-nicht-gefunden-werden-28712</guid>
		</item>
		<item>
			<title>Bruder braucht Hilfe bei Java</title>
			<link>java-95/bruder-braucht-hilfe-bei-java-28651?goto=newpost</link>
			<pubDate>Wed, 11 Dec 2013 17:56:25 GMT</pubDate>
			<description>Guten Abend,  
 
ich zitiere ihn einfach direkt mal: 
 
 
---Zitat--- 
Schreiben Sie eine ausführbare Klasse, die, gesteuert von einer Zeichenkette,...</description>
			<content:encoded><![CDATA[<div>Guten Abend, <br />
<br />
ich zitiere ihn einfach direkt mal:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Zitat:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			Schreiben Sie eine ausführbare Klasse, die, gesteuert von einer Zeichenkette, einen<br />
Polygonzugs zeichnet. Der Polygonzug beginnt im Ursprung des Koordinatensystems<br />
und der Zeichenstift ist in Richtung der positiven x-Achse orientiert.<br />
<br />
Die Zeichenkette<br />
enthält nur die Buchstaben F, L und R.<br />
<br />
F Bewege den Zeichenstift um die Länge 1 in die Richtung, in die der Zeichenstift<br />
orientiert ist und zeichne dabei eine Linie.<br />
L Drehe den Zeichenstift um 90 nach links.<br />
R Drehe den Zeichenstift um 90 nach rechts.<br />
<br />
<b>Soweit hab ich alles verstanden!<br />
Doch die eigentliche Aufgabenstellung danach macht mir zu schaffen.</b><br />
<br />
Dem eigentlichen Zeichnen geht eine Simulation voran, die die Groe des Polygonzugs<br />
ermittelt, d.h. die maximale/minimale x-/y-Koordinaten bestimmt,<br />
und die Skalierung des angezeigten Koordinatensystems so festlegt, dass der<br />
komplette Polygonzug sichtbar ist.<br />
Der Polygonzug wird mit Hilfe der Methoden<br />
Klasse StdDraw gezeichnet.<br />
<br />
<b>Wie man eine Fenster bei Java erzeugt weiß ich mittlerweile, nur verstehe ich nicht wie ich das ganze in Java-Code zusammenfassen soll.<br />
Mein Ansatzpunkt wäre der :<br />
<br />
Java Code: Quelltext in neuem Fenster öffnen<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; class Hint {<br />
&nbsp; &nbsp; public static void main ( String [] args ) {<br />
&nbsp; &nbsp; int count = StdIn . readInt ();<br />
&nbsp; &nbsp; StdIn . readLine ();<br />
&nbsp; &nbsp; char [] str = new char[ count ];<br />
&nbsp; &nbsp; for(int i = 0; i &lt; count ; i++)<br />
&nbsp; &nbsp; str [i] = StdIn . readChar ();<br />
&nbsp; &nbsp; StdIn . readLine ();<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</code><hr />
</div></b><br />
<br />
<b>Er ließt quasi die Anzahl der Zeichen und die Zeichen nacheinander von der<br />
Standardeingabe.<br />
<br />
Nur wie erzeuge ich ein Polygonzug laut der Aufgabenstellung ? Wäre echt lieb wenn ihr helfen würdet<br />
<br />
Liebe Grüße</b>
			
		<hr />
	</div>
</div>Das dicke ist seine Nachricht an euch. Wäre froh wenn ihr ihm helfen könntet, und einfach eure Idee postet. Hier ist die Aufgabe als PDF (Seite 5).<br />
<br />
<br />
Liebe Grüße.</div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Angehängte Dateien</legend>
			<ul>
			<li>
	<img class="inlineimg" src="https://u-labs.de/forum/images/attach/pdf.gif" alt="Dateityp: pdf" />
	<a href="https://u-labs.de/forum/attachment.php?attachmentid=5946&amp;d=1387892555">uebung06.pdf</a> 
(145,9 KB)
</li>
			</ul>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Mr.Bombastic</dc:creator>
			<guid isPermaLink="true">java-95/bruder-braucht-hilfe-bei-java-28651</guid>
		</item>
		<item>
			<title>HttpURLConnection Problem</title>
			<link>java-95/httpurlconnection-problem-28435?goto=newpost</link>
			<pubDate>Sun, 01 Dec 2013 13:06:16 GMT</pubDate>
			<description>Hallo Leute, 
habe ein Problem bei meinem Javaprogramm. 
Ich möchte für Browsergame eine Art Bot schreiben. 
Der Login läuft in 3 schritten ab. 
1....</description>
			<content:encoded><![CDATA[<div>Hallo Leute,<br />
habe ein Problem bei meinem Javaprogramm.<br />
Ich möchte für Browsergame eine Art Bot schreiben.<br />
Der Login läuft in 3 schritten ab.<br />
1. Browser sendet Username + Passwort an den Server<br />
2. Browser bekommt von der Seite das verhashtes(?) Passwort als Response<br />
3. Browser sendet Username + verhashtes Passwort an den Server<br />
4. Erfolg. <br />
<br />
Habe dies als erstes so gelöst:<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b>:<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
    public static boolean login(String user, String pw){<br />
        try{ <br />
                        <br />
            CookieHandler.setDefault(new CookieManager(null,CookiePolicy.ACCEPT_ALL));<br />
            <br />
            URL url = new URL(URL);<br />
            HttpURLConnection uc = (HttpURLConnection)url.openConnection();<br />
            uc.setRequestMethod(&quot;POST&quot;);<br />
            uc.setRequestProperty(&quot;Content-Type&quot;,&quot;application/x-www-form-urlencoded&quot;);<br />
            uc.setRequestProperty(&quot;Content-Length&quot;, &quot;&quot; + Integer.toString((parameter).getBytes().length));<br />
            uc.setRequestProperty(&quot;Content-Language&quot;, &quot;en-US&quot;); <br />
            uc.setUseCaches(false);<br />
            uc.setDoInput(true);<br />
            uc.setDoOutput(true);<br />
            <br />
            DataOutputStream wr = new DataOutputStream(uc.getOutputStream());<br />
            wr.writeBytes(parameter);<br />
            wr.flush();<br />
            wr.close();<br />
            <br />
            BufferedReader rd = new BufferedReader(new InputStreamReader(uc.getInputStream()));<br />
            String line;<br />
            StringBuffer  response = new StringBuffer();<br />
            while((line = rd.readLine()) != null) {<br />
                response.append(line);<br />
                response.append('\r');<br />
              }<br />
            rd.close();<br />
        <br />
        <br />
            pw = response.toString().split(&quot;\\\&quot;&quot;)&#91;22&#93;.replace(&quot;\\&quot;, &quot;&quot;);<br />
                <br />
            url = new URL(URL);<br />
            uc = (HttpURLConnection)url.openConnection();<br />
            uc.setRequestMethod(&quot;POST&quot;);<br />
            uc.setRequestProperty(&quot;Content-Type&quot;,&quot;application/x-www-form-urlencoded&quot;);<br />
            uc.setRequestProperty(&quot;Content-Length&quot;, &quot;&quot; + Integer.toString((parameter).getBytes().length));<br />
            uc.setRequestProperty(&quot;Content-Language&quot;, &quot;en-US&quot;); <br />
            uc.setUseCaches(true);<br />
            uc.setDoInput(true);<br />
            uc.setDoOutput(true);<br />
            <br />
            <br />
            wr = new DataOutputStream(uc.getOutputStream());<br />
            wr.writeBytes(parameter);<br />
            wr.flush();<br />
            wr.close();<br />
            <br />
            rd = new BufferedReader(new InputStreamReader(uc.getInputStream()));<br />
            line = &quot;&quot;;<br />
            response = new StringBuffer();<br />
            while((line = rd.readLine()) != null) {<br />
                response.append(line);<br />
                response.append('\r');<br />
              }<br />
            rd.close();<br />
            <br />
            return loggedin = response.toString().toLowerCase().contains(blub);<br />
        <br />
            <br />
        } catch (Exception e) {<br />
            e.printStackTrace();<br />
        }<br />
        return loggedin;<br />
        <br />
        <br />
    }<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script>
</div>
</div>
</div><br />
<br />
Dies hat auch funktioniert allerdings habe ich hier schon 2 Mal im Prinzip den selben Codeblock, und im laufe des Programmes wird er noch öfter vorkommen. <br />
Also habe ich das ganze in eine Methode abgeschoben, wo ich nur den Parameter und die URL angeben muss.<br />
<br />
Dies sieht dann so aus:<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b>:<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
public String request(String uri, String parameter, boolean response){<br />
        try{<br />
            CookieHandler.setDefault(new CookieManager(null,CookiePolicy.ACCEPT_ALL));<br />
                <br />
            URL url = new URL(uri);<br />
            HttpURLConnection uc = (HttpURLConnection)url.openConnection();<br />
            uc.setRequestMethod(&quot;POST&quot;);<br />
            uc.setRequestProperty(&quot;Content-Type&quot;,&quot;application/x-www-form-urlencoded&quot;);<br />
            uc.setRequestProperty(&quot;Content-Length&quot;, &quot;&quot; + Integer.toString((parameter).getBytes().length));<br />
            uc.setRequestProperty(&quot;Content-Language&quot;, &quot;en-US&quot;); <br />
            uc.setUseCaches(false);<br />
            uc.setDoInput(true);<br />
            uc.setDoOutput(true);<br />
            <br />
            <br />
            DataOutputStream wr = new DataOutputStream(uc.getOutputStream());<br />
            wr.writeBytes(parameter);<br />
            wr.flush();<br />
            wr.close();            <br />
            <br />
            if(response){<br />
                BufferedReader rd = new BufferedReader(new InputStreamReader(uc.getInputStream()));<br />
                String line;<br />
                StringBuffer tmp = new StringBuffer();<br />
                while((line = rd.readLine()) != null) {<br />
                    tmp.append(line);<br />
                    tmp.append('\r');<br />
                  }<br />
                rd.close();<br />
                return tmp.toString();<br />
            }else{<br />
                return &quot;&quot;;<br />
            }<br />
        }catch(Exception ex){<br />
            ex.printStackTrace();<br />
        }<br />
        return &quot;&quot;;<br />
    }<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script>
</div>
</div>
</div><br />
<br />
Welche ich dann eben, z.B.: für den Loginvorgang 2 Mal aufrufe.<br />
Allerdings funktioniert der Login auf diese Weise nicht.<br />
Meldung bekomme ich von der Website, dass meine Session abgelaufen sei.<br />
Habe schon probiert uc global zu definieren hat, wie erwartet, nichts gebracht.<br />
<br />
Hoffe das mir jemand helfen kann.</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>SomeOneToKnow</dc:creator>
			<guid isPermaLink="true">java-95/httpurlconnection-problem-28435</guid>
		</item>
		<item>
			<title>Array befüllen ohne immer den Index anzugeben</title>
			<link>java-95/array-befuellen-ohne-immer-den-index-anzugeben-28267?goto=newpost</link>
			<pubDate>Sat, 23 Nov 2013 12:16:20 GMT</pubDate>
			<description><![CDATA[Hallo. 
 
Habe hier einen Code, der in der Zeile blt[blt.length] = new Verein(a, b, c , d); fehlschlägt. 
 
Vorhaben: Dem Array ohne immer den Index...]]></description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
Habe hier einen Code, der in der Zeile <script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
blt&#91;blt.length&#93; = new Verein(a, b, c , d);
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script> fehlschlägt.<br />
<br />
Vorhaben: Dem Array ohne immer den Index mitzugeben , ein neues Element hinzufügen. Es muss bei einem Array bleiben, darf keine List nehmen.<br />
<br />
Fehler: <b>java.lang.ArrayIndexOutOfBoundsException.</b><br />
<br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
public class VereinsManager<br />
{<br />
private Verein&#91;&#93; blt = new Verein&#91;18&#93;;<br />
<br />
{<br />
  ad(&quot;BvB&quot; , 12, 19, 44);<br />
<br />
for(Verein d : blt)<br />
{<br />
    System.out.println(d.getName() + &quot;   &quot; + d.getGames() + &quot;    &quot; + d.getRank() + &quot;    &quot; + d.getPoints());<br />
}<br />
<br />
    <br />
}<br />
  <br />
public VereinsManager(){}<br />
<br />
public void ad(String a, int b, int c, int d) <br />
{<br />
    blt&#91;blt.length&#93; = new Verein(a, b, c , d);<br />
}
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
<br />
Kann mir jemand sagen, warum das fehlschlägt?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/array-befuellen-ohne-immer-den-index-anzugeben-28267</guid>
		</item>
		<item>
			<title>JButton erst nach Sekunden wieder true setzten</title>
			<link>java-95/jbutton-erst-nach-sekunden-wieder-true-setzten-28258?goto=newpost</link>
			<pubDate>Fri, 22 Nov 2013 20:23:29 GMT</pubDate>
			<description>Hallo/Nabend, 
 
ich versuche grade einen JButton zu programmieren der durch einen Klick ausgegraut wird, 
und sich von selbst wieder nach zum...</description>
			<content:encoded><![CDATA[<div>Hallo/Nabend,<br />
<br />
ich versuche grade einen JButton zu programmieren der durch einen Klick ausgegraut wird,<br />
und sich von selbst wieder nach zum Beispiel 5 Sekunden aktiviert<br />
(Die erste If-Abfrage ist absichtlich, weil ich später noch mehr JButtons hinzufügen will).<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"><br /></span><span style="color: #007700">private&nbsp;class&nbsp;</span><span style="color: #0000BB">AuswahlListener&nbsp;</span><span style="color: #007700">implements&nbsp;</span><span style="color: #0000BB">ActionListener&nbsp;</span><span style="color: #007700">{<br /><br />@</span><span style="color: #0000BB">Override<br /></span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">void&nbsp;actionPerformed</span><span style="color: #007700">(</span><span style="color: #0000BB">ActionEvent&nbsp;ae</span><span style="color: #007700">)&nbsp;{<br /><br />if&nbsp;&nbsp;(</span><span style="color: #0000BB">ae</span><span style="color: #007700">.</span><span style="color: #0000BB">getSource</span><span style="color: #007700">()&nbsp;==&nbsp;</span><span style="color: #0000BB">button</span><span style="color: #007700">)&nbsp;{<br /></span><span style="color: #0000BB">label</span><span style="color: #007700">.</span><span style="color: #0000BB">setText</span><span style="color: #007700">(</span><span style="color: #0000BB">button</span><span style="color: #007700">.</span><span style="color: #0000BB">getText</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">button</span><span style="color: #007700">.</span><span style="color: #0000BB">setEnabled</span><span style="color: #007700">(</span><span style="color: #0000BB">false</span><span style="color: #007700">);<br />&nbsp;}<br /><br /><br />if&nbsp;(!</span><span style="color: #0000BB">button</span><span style="color: #007700">.</span><span style="color: #0000BB">isEnabled</span><span style="color: #007700">())&nbsp;{<br /></span><span style="color: #FF8000">//Dieser&nbsp;Teil&nbsp;fehlt<br /></span><span style="color: #0000BB">button</span><span style="color: #007700">.</span><span style="color: #0000BB">setEnabled</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Das ausgrauen klappt problemlos,<br />
aber sobald ich einen Timer hinzufüge, schmiert das Programm ab.<br />
<br />
Bitte um Hilfe. :)</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Pyromane</dc:creator>
			<guid isPermaLink="true">java-95/jbutton-erst-nach-sekunden-wieder-true-setzten-28258</guid>
		</item>
		<item>
			<title>Prozess Module laden mit JNA</title>
			<link>java-95/prozess-module-laden-mit-jna-28246?goto=newpost</link>
			<pubDate>Fri, 22 Nov 2013 14:15:42 GMT</pubDate>
			<description>Hi, 
versuche grad alle geladenen Module eines Prozesses auszulesen. 
 
In C# ist das ja ganz einfach: 
 
ProcessModuleCollection...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
versuche grad alle geladenen Module eines Prozesses auszulesen.<br />
<br />
In C# ist das ja ganz einfach:<br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushCSharp.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: csharp;">
ProcessModuleCollection myProcessModuleCollection;<br />
ProcessModule myProcessModule = null;<br />
try<br />
{<br />
     myProcessModuleCollection = currentProcess.Modules;<br />
}
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
Allerdings habe ich keine Ahnung wie ich in Java an diese Module rankomme.<br />
<br />
Arbeite in Java mit: JNA und Psapi</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>DANP</dc:creator>
			<guid isPermaLink="true">java-95/prozess-module-laden-mit-jna-28246</guid>
		</item>
		<item>
			<title>java.lang.ClassNotFoundException: org.apache.derby.jdbc.ClientDriver</title>
			<link>java-95/java-lang-classnotfoundexception-org-apache-derby-jdbc-clientdriver-27555?goto=newpost</link>
			<pubDate>Wed, 23 Oct 2013 23:00:20 GMT</pubDate>
			<description>Ich habe folgendes Problem: 
 
 
java.lang.ClassNotFoundException: org.apache.derby.jdbc.ClientDriver 
	at java.net.URLClassLoader$1.run(Unknown...</description>
			<content:encoded><![CDATA[<div>Ich habe folgendes Problem:<br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
java.lang.ClassNotFoundException: org.apache.derby.jdbc.ClientDriver<br />
	at java.net.URLClassLoader$1.run(Unknown Source)<br />
	at java.net.URLClassLoader$1.run(Unknown Source)<br />
	at java.security.AccessController.doPrivileged(Native Method)<br />
	at java.net.URLClassLoader.findClass(Unknown Source)<br />
	at java.lang.ClassLoader.loadClass(Unknown Source)<br />
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)<br />
	at java.lang.ClassLoader.loadClass(Unknown Source)<br />
	at java.lang.Class.forName0(Native Method)<br />
	at java.lang.Class.forName(Unknown Source)<br />
	at DBTest.main(DBTest.java:20)<br />
Goodbye!<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b>:<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
import java.sql.*;<br />
<br />
public class DBTest {<br />
<br />
 static final String JDBC_DRIVER = &quot;org.apache.derby.jdbc.ClientDriver&quot;;  <br />
 static final String DB_URL = &quot;jdbc:derby://localhost:1527/sample&quot;;<br />
<br />
<br />
 static final String USER = &quot;blub&quot;;<br />
 static final String PASS = &quot;test&quot;;<br />
 <br />
 public static void main(String&#91;&#93; args) {<br />
 Connection conn = null;<br />
 Statement stmt = null;<br />
 try{<br />
<br />
    Class.forName(&quot;org.apache.derby.jdbc.ClientDriver&quot;);<br />
<br />
<br />
    System.out.println(&quot;Connecting to database...&quot;);<br />
    conn = DriverManager.getConnection(DB_URL,USER,PASS);<br />
<br />
<br />
    System.out.println(&quot;Creating statement...&quot;);<br />
    stmt = conn.createStatement();<br />
    String sql;<br />
    sql = &quot;SELECT username, password, email FROM users&quot;;<br />
    ResultSet rs = stmt.executeQuery(sql);<br />
<br />
    while(rs.next()){<br />
<br />
       String usrname = rs.getString(&quot;username&quot;);<br />
       String password = rs.getString(&quot;password&quot;);<br />
       String email = rs.getString(&quot;email&quot;);<br />
<br />
<br />
       System.out.print(&quot;, Username: &quot; + usrname);<br />
       System.out.print(&quot;, Password: &quot; + password);<br />
       System.out.println(&quot;, Email: &quot; + email);<br />
    }<br />
<br />
    rs.close();<br />
    stmt.close();<br />
    conn.close();<br />
 }catch(SQLException se){<br />
<br />
    se.printStackTrace();<br />
 }catch(Exception e){<br />
<br />
    e.printStackTrace();<br />
 }finally{<br />
<br />
    try{<br />
       if(stmt!=null)<br />
          stmt.close();<br />
    }catch(SQLException se2){<br />
    }<br />
    try{<br />
       if(conn!=null)<br />
          conn.close();<br />
    }catch(SQLException se){<br />
       se.printStackTrace();<br />
    }<br />
 }<br />
 System.out.println(&quot;Goodbye!&quot;);<br />
}<br />
}<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script>
</div>
</div>
</div><br />
<br />
Was koennte es sein? Datenbankverbindung und alles andere laeuft.</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/java-lang-classnotfoundexception-org-apache-derby-jdbc-clientdriver-27555</guid>
		</item>
		<item>
			<title>Java lernen - was entwickeln?</title>
			<link>java-95/java-lernen-was-entwickeln-26547?goto=newpost</link>
			<pubDate>Tue, 17 Sep 2013 15:43:46 GMT</pubDate>
			<description>Gezwungenermaßen muss ich Java lernen, was könnte man entwickeln um seine Kenntnisse zu vertiefen?</description>
			<content:encoded><![CDATA[<div>Gezwungenermaßen muss ich Java lernen, was könnte man entwickeln um seine Kenntnisse zu vertiefen?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Snees</dc:creator>
			<guid isPermaLink="true">java-95/java-lernen-was-entwickeln-26547</guid>
		</item>
		<item>
			<title>Frage - Collections.sort</title>
			<link>java-95/frage-collections-sort-26337?goto=newpost</link>
			<pubDate>Mon, 09 Sep 2013 15:39:07 GMT</pubDate>
			<description><![CDATA[Heey ! Ich hab da ne' peinliche Frage bezüglich Collections.sort :-/ 
 
Also kann man Collections.sort überalle bei z.B HasMaps, LinkedList, TreeMaps...]]></description>
			<content:encoded><![CDATA[<div>Heey ! Ich hab da ne' peinliche Frage bezüglich Collections.sort :-/<br />
<br />
Also kann man Collections.sort überalle bei z.B HasMaps, LinkedList, TreeMaps usw verwenden oder?<br />
Es wird dann halt einfach nur nach der Größe sortiert richtig?<br />
<br />
Lg, Saad.<br />
<br />
E: Weiss schon - geht nur bei Listen :-O</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Saad</dc:creator>
			<guid isPermaLink="true">java-95/frage-collections-sort-26337</guid>
		</item>
		<item>
			<title>Hilfe Bei Regex</title>
			<link>java-95/hilfe-bei-regex-25062?goto=newpost</link>
			<pubDate>Sun, 14 Jul 2013 14:06:24 GMT</pubDate>
			<description>Hallöchen, 
 
Ich bin nicht so erfahren mit Regex  und hoffe darauf, dass mir jemand Helfen kann :D 
 
Und zwar möchte ich folgendes aus einem...</description>
			<content:encoded><![CDATA[<div>Hallöchen,<br />
<br />
Ich bin nicht so erfahren mit Regex  und hoffe darauf, dass mir jemand Helfen kann :D<br />
<br />
Und zwar möchte ich folgendes aus einem HTML-Code regexen.<br />
(Habe das was benötigt wird rot gekennzeichnet) <br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;tr&gt;&lt;td class=&quot;col1&quot;&gt;&lt;a href=&quot;#&quot; onClick=&quot;return si('c=Singles;i=1')&quot;&gt;&lt;img src=&quot;http://sup.p1x.de/i/icon/room.gif&quot; width=&quot;28&quot; height=&quot;21&quot;&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;&lt;a href=&quot;#&quot; onClick=&quot;return wh('Singles')&quot;&gt;<font color="#FF0000">VOLL</font>&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;col3&quot;&gt;&lt;a href=&quot;#&quot; onClick=&quot;return jo('53696e676c6573')&quot;&gt;&lt;b&gt;<font color="#FF0000">Singles</font>&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;<br />
<br />
&lt;tr&gt;&lt;td class=&quot;col1&quot;&gt;&lt;a href=&quot;#&quot; onClick=&quot;return si('c=over+40+II;i=1')&quot;&gt;&lt;img src=&quot;http://sup.p1x.de/i/icon/room.gif&quot; width=&quot;28&quot; height=&quot;21&quot;&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;&lt;a href=&quot;#&quot; onClick=&quot;return wh('over+40+II')&quot;&gt; <font color="#FF0000">74 </font>&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;col3&quot;&gt;&lt;a href=&quot;#&quot; onClick=&quot;return jo('6f766572203430204949')&quot;&gt;&lt;b&gt;<font color="#FF0000">over 40 II</font>&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;<br />
<br />
&lt;tr&gt;&lt;td class=&quot;col1&quot;&gt;&lt;a href=&quot;#&quot; onClick=&quot;return si('c=Quizchannel;i=1')&quot;&gt;&lt;img src=&quot;http://sup.p1x.de/i/icon/room-game.gif&quot; width=&quot;28&quot; height=&quot;21&quot;&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;&lt;a href=&quot;#&quot; onClick=&quot;return wh('Quizchannel')&quot;&gt; <font color="#FF0000">6</font> &lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;col3&quot;&gt;&lt;a href=&quot;#&quot; onClick=&quot;return jo('5175697a6368616e6e656c')&quot;&gt;&lt;b&gt;<font color="#FF0000">Quizchannel</font>&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;</code><hr />
</div>Vielen Dank schon mal im Voraus hihio<br />
<br />
LG <br />
Avenged</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Avenged</dc:creator>
			<guid isPermaLink="true">java-95/hilfe-bei-regex-25062</guid>
		</item>
		<item>
			<title>Map - Wie eine Liste hinzufügen?</title>
			<link>java-95/map-wie-eine-liste-hinzufuegen-25045?goto=newpost</link>
			<pubDate>Sat, 13 Jul 2013 17:02:28 GMT</pubDate>
			<description><![CDATA[Joo ! Ich hab da mal ein kleines problem und zwar: 
Ich hab ne' Map, die eben Kunden als Key hat und als Value eine Aufgabenliste zu den Kunden.. 
...]]></description>
			<content:encoded><![CDATA[<div>Joo ! Ich hab da mal ein kleines problem und zwar:<br />
Ich hab ne' Map, die eben Kunden als Key hat und als Value eine Aufgabenliste zu den Kunden..<br />
<br />
Nun möchte ich ne' Methode habe, die eben eine Aufgabe zu der Liste des Kundens hinzufügt, nur ich hab halt keine Ahnung wie ich das wirklich realisieren soll xd<br />
Ich nehme mal an, dass die Übergabeparameter der Kundenname und eben die Aufgabe ist..<br />
(Ich hab noch eben zwei Klassen --&gt; Kunde und Aufgabe)<br />
<br />
Würde mich freuen, wenn mir einer helfen kann. ;-)<br />
<br />
e: Ich benutz ne' TreeMap und ne' LinkedList.. es ist halt so, dass ich die ganze Zeit ne' CastException bekommen..</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Saad</dc:creator>
			<guid isPermaLink="true">java-95/map-wie-eine-liste-hinzufuegen-25045</guid>
		</item>
		<item>
			<title><![CDATA[KeyEvents - zwei Keys "zusammenlegen"]]></title>
			<link>java-95/keyevents-zwei-keys-zusammenlegen-25037?goto=newpost</link>
			<pubDate>Sat, 13 Jul 2013 09:17:30 GMT</pubDate>
			<description><![CDATA[Hi, 
 
ich moechte wissen wie dass zusammenlegen von zwei keys, bspw. "W" und "D" ein Objekt (kein Java-Objekt, sondern ein Rectangle z.B.) in einem...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
ich moechte wissen wie dass zusammenlegen von zwei keys, bspw. &quot;W&quot; und &quot;D&quot; ein Objekt (kein Java-Objekt, sondern ein Rectangle z.B.) in einem Winkel (also gleichzeitig nach oben aber jedoch auch nach rechts) schwebt, bzw. sich verschiebt. Ich hoffe ihr wisst was ich meine. :)<br />
<br />
Krazex</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/keyevents-zwei-keys-zusammenlegen-25037</guid>
		</item>
		<item>
			<title>Quellcode analysieren und beschreiben</title>
			<link>java-95/quellcode-analysieren-beschreiben-24805?goto=newpost</link>
			<pubDate>Thu, 04 Jul 2013 01:43:54 GMT</pubDate>
			<description>Hi, 
 
und zwar hat ein Kollege von mir ein Problem mit Java. Und zwar hat er die Aufgabe, dass er einen Quellcode analysieren und beschreiben soll....</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
und zwar hat ein Kollege von mir ein Problem mit Java. Und zwar hat er die Aufgabe, dass er einen Quellcode analysieren und beschreiben soll. Da ich keine Ahnung von Java habe, hoffe ich das ihr mir helfen könnt.<br />
<br />
Die Aufgabe lautet:<br />
<br />
Gegeben sind die nachfolgenden Klassen: StudentIn und EwStudentIn<br />
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
<br />
public class StudentIn {<br />
private String name;<br />
public StudentIn() {<br />
this.name = &quot;Bond&quot;; this.vorname = &quot;James&quot;;<br />
this.matrikelnummer = &quot;007&quot;; }<br />
public StudentIn(String vorname) {<br />
this();<br />
this.vorname = vorname;<br />
}<br />
protected String matrikelnummer;<br />
public void setData(String matrikelnummer) {<br />
this.matrikelnummer = matrikelnummer; }<br />
public void setData(String name, String vorname, String matrikelnummer) {<br />
this.name = name; this.vorname; this.matrikelnummer = matrikelnummer;<br />
}private String vorname; public String getData() {<br />
return this.vorname + &quot;:&quot; + this.name + &quot;:&quot; + this.matrikelnummer;}}<br />
<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
Der Komplette Quellcode soll von oben bis unten Schritt für Schritt erklärt werden und sagen was im jeweiligen Schritt passiert.<br />
<br />
MfG</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Daxter</dc:creator>
			<guid isPermaLink="true">java-95/quellcode-analysieren-beschreiben-24805</guid>
		</item>
		<item>
			<title><![CDATA[[Java] Kleine Klasse für Polynome]]></title>
			<link>java-95/java-kleine-klasse-fuer-polynome-24630?goto=newpost</link>
			<pubDate>Wed, 26 Jun 2013 13:13:12 GMT</pubDate>
			<description><![CDATA[Hi, 
 
ich habe eine Klasse wiedergefunden, die ich vor >1 Jahr für meine Mathe-Hausaufgaben geschrieben habe. 
 
 
 
class Polynomial { 
    private...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
ich habe eine Klasse wiedergefunden, die ich vor &gt;1 Jahr für meine Mathe-Hausaufgaben geschrieben habe.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b>:<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
class Polynomial {<br />
    private static enum GroupNames {<br />
        COEFF, POW, NUM;<br />
    }<br />
<br />
    private List&lt;Tuple&lt;Double, Integer&gt;&gt; monomials;<br />
<br />
    public Polynomial(String input) {<br />
        this.monomials = parse(input.replaceAll(&quot;\\s&quot;, &quot;&quot;));<br />
        sortByDegreeDesc();<br />
    }<br />
<br />
    private Polynomial(List&lt;Tuple&lt;Double, Integer&gt;&gt; newMonomials) {<br />
        monomials = new ArrayList&lt;&gt;();<br />
        for (Tuple&lt;Double, Integer&gt; tuple : newMonomials) {<br />
            monomials.add(tuple);<br />
        }<br />
        sortByDegreeDesc();<br />
    }<br />
<br />
    public double evaluate(double x) {<br />
        double sum = 0;<br />
        for (Tuple&lt;Double, Integer&gt; tuple : monomials) {<br />
            final Double v1 = tuple.getValue1();<br />
            final Integer v2 = tuple.getValue2();<br />
            sum += v2 == null ? v1 : v1 * Math.pow(x, v2);<br />
        }<br />
        return sum;<br />
    }<br />
<br />
    public Polynomial getDerivative() {<br />
        final List&lt;Tuple&lt;Double, Integer&gt;&gt; newMonomials = new ArrayList&lt;&gt;();<br />
        for (Tuple&lt;Double, Integer&gt; tuple : monomials) {<br />
            final Double  coeff = tuple.getValue1();<br />
            final Integer power = tuple.getValue2();<br />
            if (power == null)<br />
                continue;<br />
            final Double newCoeff = coeff * power;<br />
            final Integer newPower = (power - 1) == 0 ? null : (power - 1);<br />
            newMonomials.add(new Tuple&lt;Double, Integer&gt;(newCoeff, newPower));<br />
        }<br />
        return new Polynomial(newMonomials);<br />
    }<br />
<br />
    public Polynomial getAntiderivative() {<br />
        final List&lt;Tuple&lt;Double, Integer&gt;&gt; newMonomials = new ArrayList&lt;&gt;();<br />
        for (Tuple&lt;Double, Integer&gt; tuple : monomials) {<br />
            final Double  coeff = tuple.getValue1();<br />
            final Integer power = tuple.getValue2() == null ? 0 : tuple.getValue2();<br />
            final Double newCoeff = coeff / (power + 1);<br />
            final Integer newPower = power + 1;<br />
            newMonomials.add(new Tuple&lt;Double, Integer&gt;(newCoeff, newPower));<br />
        }<br />
        return new Polynomial(newMonomials);<br />
    }<br />
<br />
<br />
    private List&lt;Tuple&lt;Double, Integer&gt;&gt; parse(String input) {<br />
        final Matcher matcher = getPattern().matcher(input);<br />
        final List&lt;Tuple&lt;Double, Integer&gt;&gt; output = new ArrayList&lt;&gt;();<br />
        while (matcher.find()) {<br />
            final String coeffGroup = matcher.group(GroupNames.COEFF.name());<br />
            final String powerGroup = matcher.group(GroupNames.POW.name());<br />
            final String   numGroup = matcher.group(GroupNames.NUM.name());<br />
            if (numGroup != null) {<br />
                output.add(new Tuple&lt;Double, Integer&gt;(Double.parseDouble(numGroup), null));<br />
            } else {<br />
                final double coeff = coeffGroup == null ? 1 : Double.parseDouble(coeffGroup);<br />
                final int    power = powerGroup == null ? 1 : Integer.parseInt(powerGroup);<br />
                output.add(new Tuple&lt;Double, Integer&gt;(coeff, power));<br />
            }<br />
        }<br />
        return output;<br />
    }<br />
<br />
    private Pattern getPattern() {<br />
        final String numberP = &quot;&#91;+-&#93;?\\d+(\\.\\d+)?&quot;;<br />
        final String  coeffP = &quot;(?&lt;&quot; + GroupNames.COEFF.name() + &quot;&gt;&quot; + numberP + &quot;)&quot;;<br />
        final String  powerP = &quot;(?&lt;&quot; + GroupNames.POW.name()   + &quot;&gt;\\d+)&quot;;<br />
        final String    numP = &quot;(?&lt;&quot; + GroupNames.NUM.name()   + &quot;&gt;&quot; + numberP + &quot;)&quot;;<br />
        return Pattern.compile(&quot;((&quot; + coeffP + &quot;)?(x(\\^&quot; + powerP + &quot;)?))|&quot; + numP);<br />
    }<br />
<br />
    private void sortByDegreeDesc() {<br />
        Collections.sort(monomials, new Comparator&lt;Tuple&lt;Double, Integer&gt;&gt;() {<br />
            @Override<br />
            public int compare(Tuple&lt;Double, Integer&gt; o1, Tuple&lt;Double, Integer&gt; o2) {<br />
                final Integer o1Degree = o1.getValue2();<br />
                final Integer o2Degree = o2.getValue2();<br />
                if (o1Degree == null &amp;&amp; o2Degree == null)<br />
                    return 0;<br />
                else if (o1Degree == null &amp;&amp; o2Degree != null)<br />
                    return 1;<br />
                else if (o1Degree != null &amp;&amp; o2Degree == null)<br />
                    return -1;<br />
                return o1Degree == o2Degree ? 0 : (o1Degree &gt; o2Degree ? -1 : 1);<br />
            }<br />
        });<br />
    }<br />
<br />
    @Override<br />
    public String toString() {<br />
        final StringBuilder output = new StringBuilder();<br />
        for (Tuple&lt;Double, Integer&gt; tuple : monomials) {<br />
            final Double  v1 = tuple.getValue1();<br />
            final Integer v2 = tuple.getValue2();<br />
            if (v2 == null)<br />
                output.append(String.format(&quot;%+.2f&quot;, v1) + &quot; &quot;);<br />
            else<br />
                output.append(String.format(&quot;%+.2f&quot;, v1) + (v2 == 1 ? &quot;x &quot; : &quot;x^&quot; + v2 + &quot; &quot;));<br />
        }<br />
        return output.toString();<br />
    }<br />
}<br />
<br />
final class Tuple&lt;A, B&gt; {<br />
    private final A value1;<br />
    private final B value2;<br />
<br />
    public Tuple(A value1, B value2) {<br />
        this.value1 = value1;<br />
        this.value2 = value2;<br />
    }<br />
<br />
    public A getValue1() { return value1; }<br />
    public B getValue2() { return value2; }<br />
}<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />

</div>
</div>
</div><br />
<br />
Die Klasse nimmt Polynome als String (z.B. &quot;6x^3+2x^2+6x-9&quot;) entgegen, parst sie und stellt Methoden zur Verfügung, mit denen man ab- und aufleiten sowie evaluieren kann.<br />
<br />
Beispielprogramm:<br />
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
<br />
public final class PolynomialDemo {<br />
    public static void main(String&#91;&#93; args) throws IOException {<br />
        final Polynomial polynomial = new Polynomial(&quot;6x^3+2x^2+6x-9&quot;);<br />
<br />
        final Polynomial firstAntiDeriv = polynomial.getAntiderivative();<br />
        final Polynomial secndAntiDeriv = firstAntiDeriv.getAntiderivative();<br />
        final Polynomial thirdAntiDeriv = secndAntiDeriv.getAntiderivative();<br />
<br />
        final Polynomial firstDeriv = polynomial.getDerivative();<br />
        final Polynomial secndDeriv = firstDeriv.getDerivative();<br />
        final Polynomial thirdDeriv = secndDeriv.getDerivative();<br />
<br />
        System.out.println(&quot;F'''(x) = &quot; + thirdAntiDeriv);<br />
        System.out.println(&quot;F''(x) = &quot; + secndAntiDeriv);<br />
        System.out.println(&quot;F'(x) = &quot; + firstAntiDeriv);<br />
<br />
        System.out.println(&quot;\nf(x) = &quot; + polynomial + &quot;\t f(5) = &quot; + polynomial.evaluate(5) + &quot;\n&quot;);<br />
<br />
        System.out.println(&quot;f'(x) = &quot; + firstDeriv);<br />
        System.out.println(&quot;f''(x) = &quot; + secndDeriv);<br />
        System.out.println(&quot;f'''(x) = &quot; + thirdDeriv);<br />
    }<br />
}<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script><br />
<br />
Ausgabe:<br />
<a href="http://www.u-img.net/view/7184Rm.png" target="_blank"><img src="http://u-img.net/img/7184Rm_thumb.png" border="0" alt="" /></a><br />
<br />
<br />
Vielleicht werde ich bei Gelegenheit etwas mehr Ordnung reinbringen und um Funktionalität erweitern. Die Nullstellenberechnung zu programmieren, war mir damals zu kompliziert. xD</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Mr. White</dc:creator>
			<guid isPermaLink="true">java-95/java-kleine-klasse-fuer-polynome-24630</guid>
		</item>
		<item>
			<title><![CDATA[[F] Deep Copy vs Shallow Copy]]></title>
			<link>java-95/f-deep-copy-vs-shallow-copy-24588?goto=newpost</link>
			<pubDate>Mon, 24 Jun 2013 11:49:14 GMT</pubDate>
			<description>Heey kann mir jmd vlt erklären was der Unterschied zwischen den beiden ist im bezug zu einer LinkedList? :-) 
Wenn es z.B heißt, dass ich eine...</description>
			<content:encoded><![CDATA[<div>Heey kann mir jmd vlt erklären was der Unterschied zwischen den beiden ist im bezug zu einer LinkedList? :-)<br />
Wenn es z.B heißt, dass ich eine Shallow-Copy von der Liste machen soll.. :-)<br />
Hab schon gegoogelt, aber keine wirklich gute Antwort darauf gefunden.<br />
<br />
<br />
Lg, Saad.</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Saad</dc:creator>
			<guid isPermaLink="true">java-95/f-deep-copy-vs-shallow-copy-24588</guid>
		</item>
		<item>
			<title>definition von Klassen , Objekten und etc.?</title>
			<link>java-95/definition-klassen-objekten-etc-24465?goto=newpost</link>
			<pubDate>Tue, 18 Jun 2013 15:38:59 GMT</pubDate>
			<description>Hallo Leute :)  
 
Kann mir jemand vllt. nochmal  Objekte  , Klassen , die Kennt Beziehung, die Hat Beziehung und Abstrakte Klassen erklären? 
 
Mein...</description>
			<content:encoded><![CDATA[<div>Hallo Leute :) <br />
<br />
Kann mir jemand vllt. nochmal  Objekte  , Klassen , die Kennt Beziehung, die Hat Beziehung und Abstrakte Klassen erklären?<br />
<br />
Mein Lehrer kann es so gut erklären wie meine Katze... Der ganze Kurs ist mittlerweile am verzweifeln...</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Silidor</dc:creator>
			<guid isPermaLink="true">java-95/definition-klassen-objekten-etc-24465</guid>
		</item>
		<item>
			<title><![CDATA[Binarysearch in Java int[]]]></title>
			<link>java-95/binarysearch-in-java-int-24445?goto=newpost</link>
			<pubDate>Mon, 17 Jun 2013 15:25:00 GMT</pubDate>
			<description><![CDATA[Hallo. 
 
 
Code: 
--------- 
	public static void sh(String t) {System.out.println(t);} 
	public static void test() 
	{ 
		sh("Digit 304, binary,...]]></description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; &nbsp; &nbsp; public static void sh(String t) {System.out.println(t);}<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static void test()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sh(&quot;Digit 304, binary, Position(sorted): &quot; + String.valueOf(binarys(new int[] {173,298,7893,304,101,99,83,43,98726,342, 654} , 304)));<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
public static int binarys(int[] zahlen, int zahl){return Arrays.binarySearch(zahlen , 0 , zahlen.length - 1, zahl);}</code><hr />
</div><br />
Die Ausgabe ist immer -9. Was läuft da schief?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/binarysearch-in-java-int-24445</guid>
		</item>
		<item>
			<title>Konsolenausgabe in CSV-Datei exportieren</title>
			<link>java-95/konsolenausgabe-in-csv-datei-exportieren-23854?goto=newpost</link>
			<pubDate>Sun, 26 May 2013 09:09:08 GMT</pubDate>
			<description><![CDATA[Hey Leute ! 
 
Ich hab da mal ne' kleine Frage. Nachdem ich Google schon durchforstet habe und leider nichts vernünftiges gefunden habe, hoffe ich...]]></description>
			<content:encoded><![CDATA[<div>Hey Leute !<br />
<br />
Ich hab da mal ne' kleine Frage. Nachdem ich Google schon durchforstet habe und leider nichts vernünftiges gefunden habe, hoffe ich hier auf Hilfe !<br />
Und zwar: Ich möchte eine Konsolenausgabe in eine CSV-Datei exportieren, hab leider keinen Plan wie das gehen soll..<br />
<br />
Folgender Code erzeugt zwar ne' Ausgabe in eienr CSV-Datei, aber halt nicht ne' Konsolenausgabe, sondern von einer .txt-Datei<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b>:<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
import java.io.*;<br />
<br />
public class Exporter {<br />
<br />
<br />
	public static void main(String&#91;&#93; args) throws Exception {<br />
		Reader in = new BufferedReader(new FileReader(&quot;test.txt&quot;));<br />
		Writer out = new BufferedWriter(new FileWriter(&quot;test.csv&quot;));<br />
<br />
		int c;<br />
		while ((c = in.read()) != -1) {<br />
		System.out.printf(&quot;%c&quot;, c);<br />
		out.write(c);<br />
		}<br />
		<br />
		in.close();<br />
		out.close();<br />
	}<br />
<br />
}<br />

</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script>
</div>
</div>
</div><br />
Mit <script type="text/javascript" src="clientscript/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="clientscript/syntaxhighlighter/shBrushJava.js"></script>
<link type="text/css" rel="stylesheet" href="clientscript/syntaxhighlighter/styles/shCoreDefault.css"/>

<pre class="brush: java;">
System.setOut(new PrintStream(new File(&quot;test.csv&quot;)));
</pre>
<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script> leite ich zwar die Ausgabe in eine .csv-datei, aber die hat dann irgendwi ekein Format :/<br />
<br />
Die Ausgabe von meinem Code ist eh eine Tabelle mit z.B Namen, Telefonnummer usw.. (aber in einer anderen Klasse !)<br />
<br />
Lg, Saad.</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Saad</dc:creator>
			<guid isPermaLink="true">java-95/konsolenausgabe-in-csv-datei-exportieren-23854</guid>
		</item>
		<item>
			<title>JET-Dateien Öffnen?</title>
			<link>java-95/jet-dateien-oeffnen-23599?goto=newpost</link>
			<pubDate>Sat, 18 May 2013 11:49:53 GMT</pubDate>
			<description>Hey Leutz, 
 
ich arbeite gerade an einer App die ich für ein User cracken wollte und nun habe ich die JET dateien die ich vorher öffnen konnte aber...</description>
			<content:encoded><![CDATA[<div>Hey Leutz,<br />
<br />
ich arbeite gerade an einer App die ich für ein User cracken wollte und nun habe ich die JET dateien die ich vorher öffnen konnte aber jetzt nicht mehr öffnen kann, ka warum.<br />
<br />
Weiß einer mit welchen programm ich das öffnen kann?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Bazs</dc:creator>
			<guid isPermaLink="true">java-95/jet-dateien-oeffnen-23599</guid>
		</item>
		<item>
			<title>List(Of T) blockiert Paint Zeichnen</title>
			<link>java-95/list-of-t-blockiert-paint-zeichnen-22736?goto=newpost</link>
			<pubDate>Thu, 25 Apr 2013 18:55:21 GMT</pubDate>
			<description>Hallo. 
 
Ich bin dabei mir ein Autohaus zu programmieren(für Informatik müssen wir das). 
 
Soweit so gut, die Autos werden gezeichnet etc. 
 
Jetzt...</description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
Ich bin dabei mir ein Autohaus zu programmieren(für Informatik müssen wir das).<br />
<br />
Soweit so gut, die Autos werden gezeichnet etc.<br />
<br />
Jetzt habe ich natürlich eine Klasse erstellt, um die Autos zu speichern.<br />
<br />
Die sieht so aus:<br />
<br />
<br />
Wenn ich aber registercar beim Zeichnen im Paint Event aufrufe, um das Auto zu &quot;registrieren&quot; , wird nichts gezeichnet.<br />
<br />
Woran liegt das?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/list-of-t-blockiert-paint-zeichnen-22736</guid>
		</item>
		<item>
			<title><![CDATA[[Java] Aus Klasse heraus auf Applet zeichnen]]></title>
			<link>java-95/java-aus-klasse-heraus-applet-zeichnen-22536?goto=newpost</link>
			<pubDate>Thu, 18 Apr 2013 16:16:28 GMT</pubDate>
			<description>Hallo. 
 
Ich suche jemanden der mir mal kurz bei Java helfen kann, es geht um Grafiken zeichnen.. 
 
Vllt. kann mir jemand über Teamviewer helfen.....</description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
Ich suche jemanden der mir mal kurz bei Java helfen kann, es geht um Grafiken zeichnen..<br />
<br />
Vllt. kann mir jemand über Teamviewer helfen..<br />
<br />
Bieten kann ich leider nichts :(</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/java-aus-klasse-heraus-applet-zeichnen-22536</guid>
		</item>
		<item>
			<title>UH API Problem</title>
			<link>java-95/uh-api-problem-20725?goto=newpost</link>
			<pubDate>Sat, 16 Feb 2013 21:36:13 GMT</pubDate>
			<description>Hey, 
 
Bin grad an dem Bukkit Plugin für den Minecraft Server dranne. 
 
 
Wenn ich per POST das PW und den Usernamen zur API schicke wird mir...</description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
Bin grad an dem Bukkit Plugin für den Minecraft Server dranne.<br />
<br />
<br />
Wenn ich per POST das PW und den Usernamen zur API schicke wird mir Fehlercode 3(Passwort falsch) zurückgeworfen. Das PW ist mit folgender Methode gehasht: <br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">String&nbsp;MD5</span><span style="color: #007700">(</span><span style="color: #0000BB">String&nbsp;benutzer</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">MessageDigest&nbsp;md5&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">md5&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">MessageDigest</span><span style="color: #007700">.</span><span style="color: #0000BB">getInstance</span><span style="color: #007700">(</span><span style="color: #DD0000">"MD5"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(</span><span style="color: #0000BB">NoSuchAlgorithmException&nbsp;e</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;TODO&nbsp;Auto-generated&nbsp;catch&nbsp;block<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">e</span><span style="color: #007700">.</span><span style="color: #0000BB">printStackTrace</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">md5</span><span style="color: #007700">.</span><span style="color: #0000BB">reset</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">md5</span><span style="color: #007700">.</span><span style="color: #0000BB">update</span><span style="color: #007700">(</span><span style="color: #0000BB">benutzer</span><span style="color: #007700">.</span><span style="color: #0000BB">getBytes</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">byte</span><span style="color: #007700">&#91;&#93;&nbsp;</span><span style="color: #0000BB">result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">md5</span><span style="color: #007700">.</span><span style="color: #0000BB">digest</span><span style="color: #007700">();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;Ausgabe&nbsp;*/<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">StringBuffer&nbsp;hexString&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">StringBuffer</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(</span><span style="color: #0000BB">int&nbsp;i</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">result</span><span style="color: #007700">.</span><span style="color: #0000BB">length</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">++)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">hexString</span><span style="color: #007700">.</span><span style="color: #0000BB">append</span><span style="color: #007700">(</span><span style="color: #0000BB">Integer</span><span style="color: #007700">.</span><span style="color: #0000BB">toHexString</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFF&nbsp;</span><span style="color: #007700">&amp;&nbsp;</span><span style="color: #0000BB">result</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">i</span><span style="color: #007700">&#93;));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">hexString</span><span style="color: #007700">.</span><span style="color: #0000BB">toString</span><span style="color: #007700">();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>(Sie ist nicht von mir) <br />
<br />
<br />
Ich denke mal ich hashe den String falsch. <br />
<br />
Wisst ihr was an der Methode falsch ist?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>rVs14</dc:creator>
			<guid isPermaLink="true">java-95/uh-api-problem-20725</guid>
		</item>
		<item>
			<title>Alle geraden Zahlen eines Integer Arrays</title>
			<link>java-95/alle-geraden-zahlen-eines-integer-arrays-20254?goto=newpost</link>
			<pubDate>Tue, 29 Jan 2013 16:40:04 GMT</pubDate>
			<description>Hallo. 
 
Ich habe die Aufgabe, alle geraden Zahlen eines übergeben Integer Arrays zurückzugeben. 
 
Rückgabetyp soll halt auch ein Integer Array...</description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
Ich habe die Aufgabe, alle geraden Zahlen eines übergeben Integer Arrays zurückzugeben.<br />
<br />
Rückgabetyp soll halt auch ein Integer Array sein, mit den geraden Zahlen eben.<br />
<br />
<br />
<br />
Meine Idee war das Array zu durchlaufen und die geraden Zahlen in eine IntegerList einzufügen.<br />
<br />
Dann müsste ich irgendwie zu einem Array konvertieren.<br />
<br />
Ich schätze mal , ich bin da auf dem falschen Dampfer.<br />
<br />
Wahrscheinlich gibts schon eine Extension in Java, mit der man alle geraden Zahlen rausfischen kann.<br />
<br />
<br />
Vllt. kann mir jemand ein paar Tipps geben? Ich such nichtmal fertigen Code. Tipps würden mir auch schon helfen.<br />
<br />
Hab nämlich keine Ahnung wie ich dann als Rückgabe ein Int[] haben kann ohne vorher in eine List zu speichern..</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/alle-geraden-zahlen-eines-integer-arrays-20254</guid>
		</item>
		<item>
			<title>Temporäre Arrayvariable in Parameterübergabe</title>
			<link>java-95/temporaere-arrayvariable-in-parameteruebergabe-20253?goto=newpost</link>
			<pubDate>Tue, 29 Jan 2013 16:17:06 GMT</pubDate>
			<description>Hallo. 
 
Wie kann ich in Java eine temporäre Arrayvariable übergeben? 
 
Sagen wir ich hab hier eine Methode: 
 
 
Code: 
--------- 
public static...</description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
Wie kann ich in Java eine temporäre Arrayvariable übergeben?<br />
<br />
Sagen wir ich hab hier eine Methode:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">public static void test(int[] numbs){<br />
<br />
}</code><hr />
</div>Jetzt kann ich ja per:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">int[] b = {1,2,3,4,5};<br />
test(b);</code><hr />
</div>Die Prozedur aufrufen.<br />
<br />
Aber wie kann ich den Aufruf machen, ohne diese Variable erstellen zu müssen?<br />
<br />
Ich hab <div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">test({1,2,3,4});</code><hr />
</div> probiert , aber so scheint das in Java nicht zu klappen.<br />
<br />
<br />
Hab leider nichts mit Google gefunden..</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/temporaere-arrayvariable-in-parameteruebergabe-20253</guid>
		</item>
		<item>
			<title><![CDATA[[Java]Graphics/Applet - Problem]]></title>
			<link>java-95/java-graphics-applet-problem-20230?goto=newpost</link>
			<pubDate>Mon, 28 Jan 2013 20:01:59 GMT</pubDate>
			<description><![CDATA[Hi! 
 
Ich hab folgendes Problem: 
 
Hier vorerst meine *.html-Datei: 
 
 
HTML: 
--------- 
<applet width=700 height=700...]]></description>
			<content:encoded><![CDATA[<div>Hi!<br />
<br />
Ich hab folgendes Problem:<br />
<br />
Hier vorerst meine *.html-Datei:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML-Code:</div>
	<hr /><code class="bbcode_code"><span style="color:#000080">&lt;applet width=700 height=700 code=<span style="color:#0000FF">&quot;DrawLines.class&quot;</span>&gt;</span><span style="color:#000080">&lt;/applet&gt;</span></code><hr />
</div>Und hier meine DrawLines.java:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">import java.applet.*;<br />
import java.awt.*;<br />
<br />
public class DrawLines extends Applet {<br />
<br />
&nbsp;  int width, height;<br />
<br />
&nbsp;  public void init() {<br />
&nbsp; &nbsp; &nbsp; width = getSize().width;<br />
&nbsp; &nbsp; &nbsp; height = getSize().height;<br />
&nbsp; &nbsp; &nbsp; setBackground( Color.black );<br />
&nbsp;  }<br />
<br />
&nbsp;  public void paint( Graphics g ) {<br />
&nbsp; &nbsp;  g.setColor( Color.green );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp;  g.drawLine( width, height, 100, 100 );<br />
&nbsp; &nbsp; &nbsp; &nbsp;  g.drawLine( width, height, 200, 200 );<br />
&nbsp; &nbsp;  <br />
&nbsp;  }<br />
}</code><hr />
</div>Nun folgende Frage: <br />
Wenn ich meine Koordinaten vom &quot;drawLine&quot; ändere, dann kompiliere und die html-Datei aufrufe, ändern sich nicht meine Geraden. Anfangs hat er es gemacht und dann gar nicht mehr. Ehrlich gesagt weiß ich auch nicht mehr weiter. Teils werden die Geraden nicht einmal dargestellt. <br />
<br />
Kann mir jemand helfen?<br />
<br />
Mit freundlichen Grüßen,<br />
Tom</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>aquastar</dc:creator>
			<guid isPermaLink="true">java-95/java-graphics-applet-problem-20230</guid>
		</item>
		<item>
			<title>Huffmann Kodierung / Komprimierung</title>
			<link>java-95/huffmann-kodierung-komprimierung-20105?goto=newpost</link>
			<pubDate>Fri, 25 Jan 2013 15:49:55 GMT</pubDate>
			<description>Hat jemand noch die Klassen zur De-/Kompression die man für eine Lib genutzt hat?</description>
			<content:encoded><![CDATA[<div>Hat jemand noch die Klassen zur De-/Kompression die man für eine Lib genutzt hat?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Snees</dc:creator>
			<guid isPermaLink="true">java-95/huffmann-kodierung-komprimierung-20105</guid>
		</item>
		<item>
			<title>Greenfoot kennt sich jemand damit aus?</title>
			<link>java-95/greenfoot-kennt-sich-jemand-damit-aus-19838?goto=newpost</link>
			<pubDate>Wed, 16 Jan 2013 15:55:50 GMT</pubDate>
			<description>Ich bräuchte jemanden der sich mit Greenfoot auskennt und mir bei einem Problem helfen könnte ,da ich selber nicht mehr weiterkomme 
 
Falls sich...</description>
			<content:encoded><![CDATA[<div>Ich bräuchte jemanden der sich mit Greenfoot auskennt und mir bei einem Problem helfen könnte ,da ich selber nicht mehr weiterkomme<br />
<br />
Falls sich jemand damit auskennt und mir helfen würde ,wäre das echt nett :)<br />
<br />
Meldet euch hier im Thread  THX</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Silidor</dc:creator>
			<guid isPermaLink="true">java-95/greenfoot-kennt-sich-jemand-damit-aus-19838</guid>
		</item>
		<item>
			<title>Case Sensitive - .toLowerCase in Java ergibt immer false in If</title>
			<link>java-95/case-sensitive-tolowercase-in-java-ergibt-immer-false-in-if-19824?goto=newpost</link>
			<pubDate>Tue, 15 Jan 2013 20:55:05 GMT</pubDate>
			<description><![CDATA[Hallo. 
 
Ich habe global ein Array was so aussieht: 
 
 
Code: 
--------- 
public static String[] allpupils = {"Niklas", "Norman", "Richard",...]]></description>
			<content:encoded><![CDATA[<div>Hallo.<br />
<br />
Ich habe global ein Array was so aussieht:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">public static String[] allpupils = {&quot;Niklas&quot;, &quot;Norman&quot;, &quot;Richard&quot;, &quot;Mert&quot;,&quot;Felix&quot;, &quot;Easy&quot;};</code><hr />
</div><br />
Frage ich in einer For Schleife nun ab:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">if(allpupils[b].toLowerCase() == nameofpupil.toLowerCase()) return b;</code><hr />
</div>Kommt jedes mal false raus.<br />
<br />
Frage ich ohne .toLowerCase ab, kommt true raus. Die Strings sind identisch.<br />
<br />
Kann mir jemand sagen, was ich da mit LowerCase falsch mache?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/case-sensitive-tolowercase-in-java-ergibt-immer-false-in-if-19824</guid>
		</item>
		<item>
			<title>(S) Jemand der mir den Knuddels Emulator aufsetzt</title>
			<link>java-95/s-jemand-der-mir-den-knuddels-emulator-aufsetzt-19489?goto=newpost</link>
			<pubDate>Mon, 07 Jan 2013 11:47:56 GMT</pubDate>
			<description>Da ich die Installation nicht ganz so verstehe und ich nun lernen mag wie alles Funktioniert etc wollt ich euch fragen wer es mir machen kann. 
...</description>
			<content:encoded><![CDATA[<div>Da ich die Installation nicht ganz so verstehe und ich nun lernen mag wie alles Funktioniert etc wollt ich euch fragen wer es mir machen kann.<br />
<br />
Kann momentan leider nichts geben weil ich nicht mehr in Knuddels bin, vll findet sich trotzdem jemand nettes der die Lust hat mir kurz über Teamwiever zu helfen</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>St0nY</dc:creator>
			<guid isPermaLink="true">java-95/s-jemand-der-mir-den-knuddels-emulator-aufsetzt-19489</guid>
		</item>
		<item>
			<title>Get Request - Javascript</title>
			<link>java-95/get-request-javascript-18161?goto=newpost</link>
			<pubDate>Mon, 19 Nov 2012 08:40:40 GMT</pubDate>
			<description><![CDATA[Hallo, 
momentan arbeite ich sehr viel mit HTTP Requests. Nun stellt sich mir allerdings die Frage wie im allgemeinen "javascript" funktioniert (im...]]></description>
			<content:encoded><![CDATA[<div>Hallo,<br />
momentan arbeite ich sehr viel mit HTTP Requests. Nun stellt sich mir allerdings die Frage wie im allgemeinen &quot;javascript&quot; funktioniert (im zusammenspiel mit java).<br />
<br />
Folgendes Szenario:<br />
Ich habe eine Website welches nach 5 Sekunden (Javascript countdown) einen Text anzeigt z.b. &quot;5 Sekunden vorbei&quot; (Sourcecode wird komplett geupdated).<br />
<br />
Ich lade mir nun also per Java per GET Request den 1 Sourcecode. Hier sind die 5 Sekunden noch nicht abgezählt. Wie komme ich nun nach 5 Sekunden an den neuen Quelltext?<br />
Einfach einen neuen Request starten? (Wie merkt der Server dann das ich bereits vor 5 minuten &quot;da war&quot;?).<br />
<br />
Vielen Dank.</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>DANP</dc:creator>
			<guid isPermaLink="true">java-95/get-request-javascript-18161</guid>
		</item>
		<item>
			<title><![CDATA[[Java] Vorangestellte Nullen werden entfernt]]></title>
			<link>java-95/java-vorangestellte-nullen-werden-entfernt-18004?goto=newpost</link>
			<pubDate>Mon, 12 Nov 2012 16:15:45 GMT</pubDate>
			<description><![CDATA[Hey, vorab, ich hatte einfach keinen Plan wie ich den Thread nennen sollte. :> 
 
Ich habe da mal ein kleines Problem und zwar.: Ich hab hier einen...]]></description>
			<content:encoded><![CDATA[<div>Hey, vorab, ich hatte einfach keinen Plan wie ich den Thread nennen sollte. :&gt;<br />
<br />
Ich habe da mal ein kleines Problem und zwar.: Ich hab hier einen String mit dem Wert &quot;0000.00.00&quot; und wenn ich den Wert wiedergeben, steht dann nur mehr 0.0.0 da, warum ist das so?<br />
Weiter, wenn ich einen String mit dem Wert &quot;1337.07.08&quot; splitte, also von 0,4 , dann von 4,6 und von 6,8, dann wird wieder z.b statt 07, nur ne' 7 ausgegben, warum ist das so &amp; wie behebe ich das? :P</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Saad</dc:creator>
			<guid isPermaLink="true">java-95/java-vorangestellte-nullen-werden-entfernt-18004</guid>
		</item>
		<item>
			<title>Strings alphabetisch ordnen</title>
			<link>java-95/strings-alphabetisch-ordnen-17981?goto=newpost</link>
			<pubDate>Sun, 11 Nov 2012 18:21:22 GMT</pubDate>
			<description><![CDATA[Joo, ich hab da mal ne' kleine Frage und zwar: 
Ich hab zwei Strings und möchte nun beide ausgeben, aber halt sortiert. 
Beispiel: 
 
string1 =...]]></description>
			<content:encoded><![CDATA[<div>Joo, ich hab da mal ne' kleine Frage und zwar:<br />
Ich hab zwei Strings und möchte nun beide ausgeben, aber halt sortiert.<br />
Beispiel:<br />
<br />
string1 = Peter;<br />
string 2 = Daniel;<br />
<br />
Nun möchte ich halt die Strings &quot;sortiert&quot; ausgeben, also dass Daniel als erstes erscheint und dann eben Peter..<br />
Habe gerade voll keine Ahnung, wie ich das machen soll.<br />
Würde mich über einen Ansatz freuen. :)</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Saad</dc:creator>
			<guid isPermaLink="true">java-95/strings-alphabetisch-ordnen-17981</guid>
		</item>
		<item>
			<title>jTextArea in .txt speichern</title>
			<link>java-95/jtextarea-in-txt-speichern-17028?goto=newpost</link>
			<pubDate>Fri, 05 Oct 2012 11:55:06 GMT</pubDate>
			<description>Hallo! 
 
Folgendes Problem: 
Ich möchte meine komplette jTextArea, welche bereits Text beinhaltet, in eine .txt speichern und dessen Pfad selbst...</description>
			<content:encoded><![CDATA[<div>Hallo!<br />
<br />
Folgendes Problem:<br />
Ich möchte meine komplette jTextArea, welche bereits Text beinhaltet, in eine .txt speichern und dessen Pfad selbst auswählen.<br />
<br />
Folgenden Code habe ich bisher:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File file = new File(&quot;Nick.txt&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JFileChooser fc = new JFileChooser();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fc.showSaveDialog(null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file = fc.getSelectedFile();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BufferedWriter bw = new BufferedWriter(new FileWriter(file));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bw.write(jTextArea1.getText());</code><hr />
</div>Aber das scheint nicht zu funktionieren, er speichert mir zwar eine Datei am ausgewählten Pfad, jedoch ohne Textinhalt.<br />
Was mache ich falsch? <br />
<br />
Danke im Voraus und Gruß,<br />
aquastar</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>aquastar</dc:creator>
			<guid isPermaLink="true">java-95/jtextarea-in-txt-speichern-17028</guid>
		</item>
		<item>
			<title>Kara Kleeblätter aufsammeln lassen(automatisch)</title>
			<link>java-95/kara-kleeblaetter-aufsammeln-lassen-automatisch-16241?goto=newpost</link>
			<pubDate>Wed, 12 Sep 2012 14:49:21 GMT</pubDate>
			<description>Hallo, 
 
wir müssen in Informatik mit JavaKara arbeiten. 
 
Unsere Aufgabe besteht nun darin, den Käfer alle Kleeblätter aufsammeln zu lassen. 
...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
wir müssen in Informatik mit JavaKara arbeiten.<br />
<br />
Unsere Aufgabe besteht nun darin, den Käfer alle Kleeblätter aufsammeln zu lassen.<br />
<br />
Die anderen haben einfach konstante Turns für das aktuelle Feld mit der aktuellen Itemaufstellung, was wir bekommen haben (18 Felder breit, 6 Felder hoch), genommen.<br />
<br />
Das möchte ich eher nicht, denn die nächste Aufgabe wird sowieso sein, den Käfer vollautomatisiert laufen zu lassen.<br />
<br />
<br />
So sieht das Feld aus:<br />
<br />
<img src="http://s14.directupload.net/images/120910/5x4kmth9.png" border="0" alt="" /><br />
<br />
Momentan sieht mein Codeversuch so aus:<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">import&nbsp;javakara</span><span style="color: #007700">.</span><span style="color: #0000BB">JavaKaraProgram</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #FF8000">/*&nbsp;BEFEHLE:&nbsp;&nbsp;kara.<br />&nbsp;*&nbsp;&nbsp;&nbsp;move()&nbsp;&nbsp;turnRight()&nbsp;&nbsp;turnLeft()<br />&nbsp;*&nbsp;&nbsp;&nbsp;putLeaf()&nbsp;&nbsp;removeLeaf()<br />&nbsp;*<br />&nbsp;*&nbsp;SENSOREN:&nbsp;kara.<br />&nbsp;*&nbsp;&nbsp;&nbsp;treeFront()&nbsp;&nbsp;treeLeft()&nbsp;&nbsp;treeRight()<br />&nbsp;*&nbsp;&nbsp;&nbsp;mushroomFront()&nbsp;&nbsp;onLeaf()<br />&nbsp;*/<br /><br /></span><span style="color: #007700">public&nbsp;class&nbsp;</span><span style="color: #0000BB">einstiegsprogramm1&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">JavaKaraProgram&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">void&nbsp;myProgram</span><span style="color: #007700">()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">turnLeft</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">treeFront</span><span style="color: #007700">()&nbsp;||&nbsp;&nbsp;</span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">mushroomFront</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!</span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">treeRight</span><span style="color: #007700">())<br />{&nbsp;<br /></span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">turnRight</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">move</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">turnLeft</span><span style="color: #007700">();&nbsp;<br />}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!</span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">treeLeft</span><span style="color: #007700">())&nbsp;<br />{<br /></span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">turnLeft</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">move</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">turnRight</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;if&nbsp;(</span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">onLeaf</span><span style="color: #007700">())&nbsp;</span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">removeLeaf</span><span style="color: #007700">();<br />&nbsp;</span><span style="color: #0000BB">kara</span><span style="color: #007700">.</span><span style="color: #0000BB">move</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Leider scheint da irgendwo ein Fehler zu sein. Kann mir jemand helfen?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/kara-kleeblaetter-aufsammeln-lassen-automatisch-16241</guid>
		</item>
		<item>
			<title><![CDATA[[Java] Leerzeichen rausfiltern]]></title>
			<link>java-95/java-leerzeichen-rausfiltern-15710?goto=newpost</link>
			<pubDate>Sat, 18 Aug 2012 19:57:58 GMT</pubDate>
			<description>Hallo! 
 
Vorerst, hier der Code: 
 
 
Code: 
--------- 
import java.util.*; 
 
public class Leerzeichen{</description>
			<content:encoded><![CDATA[<div>Hallo!<br />
<br />
Vorerst, hier der Code:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">import java.util.*;<br />
<br />
public class Leerzeichen{<br />
&nbsp; public static void main(String args[]){<br />
&nbsp; &nbsp; String Satz;<br />
&nbsp; &nbsp; int laenge;<br />
<br />
&nbsp; &nbsp; Scanner eingabe = new Scanner(System.in);<br />
<br />
&nbsp; &nbsp; System.out.println(&quot;Gib dein Satz ein&quot;);<br />
&nbsp; &nbsp; Satz = eingabe.nextLine();<br />
&nbsp; &nbsp; laenge = Satz.length();<br />
&nbsp; &nbsp; System.out.println(String.format(&quot;Dein Satz beinhaltet %s Buchstaben&quot;, laenge));<br />
<br />
&nbsp; }<br />
}</code><hr />
</div>Das Programm soll einen Satz einlesen und die Anzahl der Buchstaben ausgeben, wie viele der Satz beinhaltet.<br />
<br />
Nun werden die Leerzeichen aber mit einbezogen. Wie kann ich die rausfiltern?<br />
<br />
Gruß,<br />
aquastar</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>aquastar</dc:creator>
			<guid isPermaLink="true">java-95/java-leerzeichen-rausfiltern-15710</guid>
		</item>
		<item>
			<title><![CDATA[[Java] HTTP Connection Problem (403, adfly)]]></title>
			<link>java-95/java-http-connection-problem-403-adfly-15477?goto=newpost</link>
			<pubDate>Wed, 08 Aug 2012 17:29:40 GMT</pubDate>
			<description><![CDATA[Hallo, 
ich habe durch den Thread mit adfly den Drang bekommen soeinen "bot" umzusetzen, welcher die url per proxy liste aufruft. (java) 
...]]></description>
			<content:encoded><![CDATA[<div>Hallo,<br />
ich habe durch den Thread mit adfly den Drang bekommen soeinen &quot;bot&quot; umzusetzen, welcher die url per proxy liste aufruft. (java)<br />
<br />
Allerdings bekomme ich hier dann, wenn ich den inputStream meiner connection auslesen weill, eine IOException das der Server einen 403 Response code returniert hat.<br />
<br />
Ich setze in meiner Connection folgende Properties:<br />
- GET<br />
- User-Agent (Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1)<br />
- cookies<br />
<br />
Jemand ne Idee?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>DANP</dc:creator>
			<guid isPermaLink="true">java-95/java-http-connection-problem-403-adfly-15477</guid>
		</item>
		<item>
			<title>Java EE 32 Bit?</title>
			<link>java-95/java-ee-32-bit-15385?goto=newpost</link>
			<pubDate>Sat, 04 Aug 2012 20:51:20 GMT</pubDate>
			<description>Hi 
 
ich bin auf der Suche nach JavaEE für ein 32 Bit-System. Allerdings bin ich bisher nicht fündig geworden, auf Oracle wird nur die...</description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
ich bin auf der Suche nach JavaEE für ein 32 Bit-System. Allerdings bin ich bisher nicht fündig geworden, auf Oracle wird nur die 64-Bit-Version angeboten (siehe <a href="http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-sdk-6u3-jdk-7u1-downloads-523391.html" target="_blank" rel="nofollow">http://www.oracle.com/technetwork/ja...ds-523391.html</a>). Jetzt meine Frage, existiert überhaupt eine 32Bit-Version angeboten?<br />
<br />
MfG</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Pwned</dc:creator>
			<guid isPermaLink="true">java-95/java-ee-32-bit-15385</guid>
		</item>
		<item>
			<title>Perfomanter Workflow</title>
			<link>java-95/perfomanter-workflow-15369?goto=newpost</link>
			<pubDate>Sat, 04 Aug 2012 12:22:40 GMT</pubDate>
			<description>Hallo, 
ich arbeite zur Zeit an einem Projekt welches auf einer Webseite Nicknames sammelt, und mit diesen Nicknames dann einen Post aufruf startet....</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
ich arbeite zur Zeit an einem Projekt welches auf einer Webseite Nicknames sammelt, und mit diesen Nicknames dann einen Post aufruf startet.<br />
<br />
Nun frage ich mich wie man das alles perfomant Lösen könnte.<br />
Momentan schaut es so aus:<br />
-Lese alle Usernamen bis keine mehr zu finden sind und speicher diese.<br />
-Starte Post aufruf für jeden Usernamen.<br />
<br />
Gibt es evtl andere Lösungen welche eventuell schneller sind? <br />
Es sind ca 5000 Nicknames.</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>DANP</dc:creator>
			<guid isPermaLink="true">java-95/perfomanter-workflow-15369</guid>
		</item>
		<item>
			<title>BananaChat Registrierungstoken</title>
			<link>java-95/bananachat-registrierungstoken-14518?goto=newpost</link>
			<pubDate>Fri, 06 Jul 2012 08:26:48 GMT</pubDate>
			<description><![CDATA[Hallo, 
was mach ich falsch? 
 
Mein Token sieht so aus: 
 
Code: 
--------- 
Dim Reg As Byte() = Encoding.UTF8.GetBytes("s0" & Nch & "Testosteron" &...]]></description>
			<content:encoded><![CDATA[<div>Hallo,<br />
was mach ich falsch?<br />
<br />
Mein Token sieht so aus:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Dim Reg As Byte() = Encoding.UTF8.GetBytes(&quot;s0&quot; &amp; Nch &amp; &quot;Testosteron&quot; &amp; Nch &amp; &quot;Easy&lt;3&quot; &amp; Nch &amp; &quot;Easy&lt;3&quot; &amp; Nch &amp; &quot;Testzz@web.de&quot; &amp; Nch &amp; &quot;27&quot; &amp; Nch &amp; &quot;männlich&quot; &amp; Nch &amp; &quot;Verliebt&quot; &amp; Nch &amp; &quot;0&quot; &amp; Nch &amp; &quot;1&quot; &amp; Nch)</code><hr />
</div><br />
Leider tut sich da gar nichts.<br />
<br />
Kann mir jemand sagen was daran falsch ist?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>!lkay</dc:creator>
			<guid isPermaLink="true">java-95/bananachat-registrierungstoken-14518</guid>
		</item>
		<item>
			<title><![CDATA[[Eclipse] Editor does not contain a main Type]]></title>
			<link>java-95/eclipse-editor-does-not-contain-a-main-type-14372?goto=newpost</link>
			<pubDate>Mon, 02 Jul 2012 17:46:57 GMT</pubDate>
			<description>Hey,  
 
Ich erhalte immer denn Error: Editor does not contain a main Type wenn ich etwas compilen möchte. 
 
Hatte jemand von euch schon mal das...</description>
			<content:encoded><![CDATA[<div>Hey, <br />
<br />
Ich erhalte immer denn Error: Editor does not contain a main Type wenn ich etwas compilen möchte.<br />
<br />
Hatte jemand von euch schon mal das Problem und kennt eine Lösung?<br />
<br />
Hier ein Screen:<br />
<br />
<img src="http://www.apload.de/images-i184467baxywy.png" border="0" alt="" /></div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>rVs14</dc:creator>
			<guid isPermaLink="true">java-95/eclipse-editor-does-not-contain-a-main-type-14372</guid>
		</item>
		<item>
			<title><![CDATA[[Problem] Fehler beim compilen]]></title>
			<link>java-95/problem-fehler-beim-compilen-13967?goto=newpost</link>
			<pubDate>Sat, 23 Jun 2012 07:36:27 GMT</pubDate>
			<description>Hallo, 
 
Ich habe heute versucht eine .java Datei zu compilen, jedoch ich erhalte ich 12 Fehlermeldungen, die ich nicht wirklich verstehe. 
Ich...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
Ich habe heute versucht eine .java Datei zu compilen, jedoch ich erhalte ich 12 Fehlermeldungen, die ich nicht wirklich verstehe.<br />
Ich selbst habe kaum Ahnung von Java, ich habe lediglich versucht ein Programm zu &quot;cracken&quot;.<br />
<br />
Die .class Datei hat mir ein Freund decompiled und ich habe die Daten zu meinem Gunsten geändert, jedoch kann ich die .java Datei nun nicht wieder &quot;zurückcompilen&quot;. Ich hoffe hier findet sich jemand der sich damit auskennt und mir die Fehler ausbügeln kann.<br />
<br />
//<br />
Es lag doch nicht am Framework.. Derjenige wo mir die Sfproxy.class decompiled hat, hat mir gesagt dass die Klassen im SFProxybot.jar sind. Habe den import wieder aus der Sfproxy.java herausgemacht und den Classpath zur SFProxybot.jar gesetzt. Nun erhalte ich immernoch 5 Fehlermeldungen, und ich habe keinen Plan wo die her kommen..<br />
<br />
Hier der Code:<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b>:<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">import java.util.ArrayList;<br />
import java.util.Date;<br />
import java.util.List;<br />
import java.util.StringTokenizer;<br />
import javax.swing.JOptionPane;<br />
<br />
public class Sfproxy<br />
{<br />
&nbsp; public static void main(String[] paramArrayOfString)<br />
&nbsp; {<br />
&nbsp; &nbsp; long l = gP.b();<br />
&nbsp; &nbsp; new mC();<br />
&nbsp; &nbsp; if (((paramArrayOfString = gP.a(&quot;2099-06-01&quot;)) == null) || (paramArrayOfString.getTime() &lt; l))<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; JOptionPane.showMessageDialog(null, &quot;License is out of date&quot;, &quot;License error&quot;, 0);<br />
&nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; paramArrayOfString = new ArrayList();<br />
&nbsp; &nbsp; new cr();<br />
&nbsp; &nbsp; Object localObject = &quot;4362644&quot;;<br />
&nbsp; &nbsp; localObject = new StringTokenizer((String)localObject);<br />
&nbsp; &nbsp; while (((StringTokenizer)localObject).hasMoreTokens())<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; String str = ((StringTokenizer)localObject).nextToken();<br />
&nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; int i = Integer.parseInt(str);<br />
&nbsp; &nbsp; &nbsp; &nbsp; paramArrayOfString.add(Integer.valueOf(i));<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; catch (Exception localException)<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; gP.a(gP.a(paramArrayOfString), 2147483647);<br />
&nbsp; &nbsp; new aZ(aj.o).start();<br />
&nbsp; &nbsp; gP.c();<br />
&nbsp; }<br />
}</code><hr />
</div>Die Fehler:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Zitat:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			<div>
				Zitat von <strong>CMD</strong>
				
			</div>
			<div class="message">C:\Users\Andy\Desktop\SF PROXYBOT cracked by John&gt;javac -classpath ./SFProxybot.<br />
jar Sfproxy.java<br />
Sfproxy.java:13: error: incompatible types<br />
    if (((paramArrayOfString = gP.a(&quot;2011-06-01&quot;)) == null) || (paramArrayOfStri<br />
ng.getTime() &lt; l))<br />
                                   ^<br />
  required: String[]<br />
  found:    Date<br />
Sfproxy.java:13: error: cannot find symbol<br />
    if (((paramArrayOfString = gP.a(&quot;2011-06-01&quot;)) == null) || (paramArrayOfStri<br />
ng.getTime() &lt; l))<br />
<br />
  ^<br />
  symbol:   method getTime()<br />
  location: variable paramArrayOfString of type String[]<br />
Sfproxy.java:18: error: incompatible types<br />
    paramArrayOfString = new ArrayList();<br />
                         ^<br />
  required: String[]<br />
  found:    ArrayList<br />
Sfproxy.java:28: error: cannot find symbol<br />
        paramArrayOfString.add(Integer.valueOf(i));<br />
                          ^<br />
  symbol:   method add(Integer)<br />
  location: variable paramArrayOfString of type String[]<br />
Sfproxy.java:34: error: no suitable method found for a(String[])<br />
    gP.a(gP.a(paramArrayOfString), 2147483647);<br />
           ^<br />
    method gP.a(int[],int) is not applicable<br />
      (actual and formal argument lists differ in length)<br />
    method gP.a(List) is not applicable<br />
      (actual argument String[] cannot be converted to List by method invocation<br />
 conversion)<br />
    method gP.a(String) is not applicable<br />
      (actual argument String[] cannot be converted to String by method invocati<br />
on conversion)<br />
    method gP.a() is not applicable<br />
      (actual and formal argument lists differ in length)<br />
5 errors</div>
			
		<hr />
	</div>
</div>
</div>
</div>
</div><br />
<br />
Außerdem wurde mir gesagt, dass ich die Sfproxy.class (Wenn das compilen irgendwann hinhaut) in die SFProxybot.jar einfügen muss, ich habe aber <b>keine Ahnung</b> gehen soll.<br />
Ich habe versucht das jar-Archiv zu entpacken um es mit der neuen Sfproxy.class wieder zu einer .jar zu machen aber es enthält mehrere gleiche Dateinamen (Was Java nicht interessiert weil es case sensitive ist) und beim entpacken überschreibt Windows diese dann.<br />
<br />
Demjenigen winkt ein kleines Dankeschön in Form von Knuddels<br />
<br />
<br />
<br />
MfG<br />
<br />
/e<br />
<strike>Habe nun herausgefunden, dass ich das &quot;JGAP Framework&quot; benötige. Habe es heruntergeladen und entpackt. Wie binde ich das nun ein? Wenn ich den Classpath setze und &quot;import org.jgap.*;&quot; hinzufüge, bekomme ich den Fehler, dass das Paket nicht existiert.. :(</strike></div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>bluedraqon</dc:creator>
			<guid isPermaLink="true">java-95/problem-fehler-beim-compilen-13967</guid>
		</item>
		<item>
			<title><![CDATA[[Java] Swing und Thread]]></title>
			<link>java-95/java-swing-thread-13948?goto=newpost</link>
			<pubDate>Fri, 22 Jun 2012 13:12:48 GMT</pubDate>
			<description>Hallo, 
ich hänge momentan an einem ziemlich hart zu lösendem Problem fest (für mich zumindest). 
 
Ich habe eine Swing form gebaut mit 2 Buttons und...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
ich hänge momentan an einem ziemlich hart zu lösendem Problem fest (für mich zumindest).<br />
<br />
Ich habe eine Swing form gebaut mit 2 Buttons und 1 Textbox.<br />
Die 2 Buttons sind jeweils mit 2 seperaten ActionListenern ausgestattet.<br />
Diese starten oder stoppen einen Thread.<br />
<br />
Da der Thread, sehr viel verarbeitet hängt sich meine Form innerhalb des Prozesses auf, und wird auch nichtmehr &quot;freigegeben&quot;.<br />
Ich vermute das die Form wartet, bis das ActionListener Event verflogen ist. Durch den Thread ist dies aber nicht möglich.<br />
<br />
Kann mir hier jemand helfen?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>DANP</dc:creator>
			<guid isPermaLink="true">java-95/java-swing-thread-13948</guid>
		</item>
		<item>
			<title><![CDATA[[Java] Timer]]></title>
			<link>java-95/java-timer-13642?goto=newpost</link>
			<pubDate>Sat, 16 Jun 2012 09:02:06 GMT</pubDate>
			<description>Hallo, 
 
Wie bekommt man in Java einen Timer hin welcher innerhalb x Sekunden etwas macht? 
Dieser Timer soll sich nicht wiederholen. 
 
Über Google...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
Wie bekommt man in Java einen Timer hin welcher innerhalb x Sekunden etwas macht?<br />
Dieser Timer soll sich nicht wiederholen.<br />
<br />
Über Google habe ich nichts sinnvolles gefunden, daher frage ich hier.</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>rVs14</dc:creator>
			<guid isPermaLink="true">java-95/java-timer-13642</guid>
		</item>
		<item>
			<title>Methoden Parameterrückgabe</title>
			<link>java-95/methoden-parameterrueckgabe-13207?goto=newpost</link>
			<pubDate>Wed, 06 Jun 2012 12:51:10 GMT</pubDate>
			<description><![CDATA[Hey! 
 
Ich hab mal 'ne Frage und zwar wie sieht es mit der Parameterrückgabe aus einer Methode von Integern aus? Ich weiß, dass man Objekte...]]></description>
			<content:encoded><![CDATA[<div>Hey!<br />
<br />
Ich hab mal 'ne Frage und zwar wie sieht es mit der Parameterrückgabe aus einer Methode von Integern aus? Ich weiß, dass man Objekte zurückgeben kann, in anderen Sprachen löst man das über sogenanntes 'Call By Reference', was es in Java nicht gibt.<br />
<br />
Ich geb euch ein Beispiel, was ich meine:<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">public&nbsp;class&nbsp;</span><span style="color: #0000BB">beispiel</span><span style="color: #007700">{<br />public&nbsp;static&nbsp;</span><span style="color: #0000BB">void&nbsp;main</span><span style="color: #007700">(</span><span style="color: #0000BB">String&nbsp;args</span><span style="color: #007700">&#91;&#93;){<br /><br /></span><span style="color: #0000BB">int&nbsp;a&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">5</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #0000BB">a</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;Ausgabe&nbsp;=&nbsp;5<br /></span><span style="color: #0000BB">plus</span><span style="color: #007700">(</span><span style="color: #0000BB">a</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #0000BB">a</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;Ausgabe&nbsp;ist&nbsp;nicht&nbsp;10,&nbsp;noch&nbsp;immer&nbsp;5<br /></span><span style="color: #007700">}<br />private&nbsp;static&nbsp;</span><span style="color: #0000BB">void&nbsp;plus</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;a</span><span style="color: #007700">){<br /><br /></span><span style="color: #0000BB">a&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">a</span><span style="color: #007700">+</span><span style="color: #0000BB">5</span><span style="color: #007700">;<br />}<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Ich hoffe ich konnte mit dem kleinen schnell geschriebenen Beispiel euch verdeutlichen, was ich meine. So, da diese Rückgabe von z.B Integern nicht geht, wollte ich fragen, ob man das anders lösen kann.<br />
<br />
Gruß,<br />
aquastar</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>aquastar</dc:creator>
			<guid isPermaLink="true">java-95/methoden-parameterrueckgabe-13207</guid>
		</item>
		<item>
			<title><![CDATA[[Problem] Handling multiple frames]]></title>
			<link>java-95/problem-handling-multiple-frames-13050?goto=newpost</link>
			<pubDate>Sat, 02 Jun 2012 19:43:43 GMT</pubDate>
			<description>Abend  
 
ich hab folgendes Problem ich möchte mehrere Frames laden und auf ein TextField des jeweiligen Frames zugreifen. 
 
ich habe mir gedacht...</description>
			<content:encoded><![CDATA[<div>Abend <br />
<br />
ich hab folgendes Problem ich möchte mehrere Frames laden und auf ein TextField des jeweiligen Frames zugreifen.<br />
<br />
ich habe mir gedacht ich füge das Frame jedes mal wenn ein neues gebraucht wird in eine HashMap ein etwa so <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">private&nbsp;static&nbsp;</span><span style="color: #0000BB">Map</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">String</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">MeinFrame</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">frames&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">HashMap</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">String</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">MeinFrame</span><span style="color: #007700">&gt;();<br /><br /></span><span style="color: #FF8000">//&nbsp;Es&nbsp;wird&nbsp;ein&nbsp;neues&nbsp;Fenster&nbsp;benötigt&nbsp;<br /></span><span style="color: #0000BB">MeinFrame&nbsp;meinFrame&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MeinFrame</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">meinFrame</span><span style="color: #007700">.</span><span style="color: #0000BB">setVisible</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">frames</span><span style="color: #007700">.</span><span style="color: #0000BB">put</span><span style="color: #007700">(</span><span style="color: #DD0000">"Fenster1"</span><span style="color: #007700">,</span><span style="color: #0000BB">meinFrame</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #FF8000">//&nbsp;Noch&nbsp;eins<br /></span><span style="color: #0000BB">meinFrame&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">MeinFrame</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">meinFrame</span><span style="color: #007700">.</span><span style="color: #0000BB">setVisible</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">frames</span><span style="color: #007700">.</span><span style="color: #0000BB">put</span><span style="color: #007700">(</span><span style="color: #DD0000">"Fenster2"</span><span style="color: #007700">,</span><span style="color: #0000BB">meinFrame</span><span style="color: #007700">);&nbsp;<br /><br /></span><span style="color: #FF8000">//&nbsp;Text&nbsp;in&nbsp;Fenster1&nbsp;ändern&nbsp;<br /><br /></span><span style="color: #0000BB">MeinFrame&nbsp;tmpFrame&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">frames</span><span style="color: #007700">.</span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #DD0000">"Fenster1"</span><span style="color: #007700">);<br />if&nbsp;(</span><span style="color: #0000BB">tmpFrame&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">)&nbsp;{<br /></span><span style="color: #0000BB">tmpFrame</span><span style="color: #007700">.</span><span style="color: #0000BB">textField</span><span style="color: #007700">.</span><span style="color: #0000BB">setText</span><span style="color: #007700">(</span><span style="color: #DD0000">"Test"</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;So&nbsp;das&nbsp;Problem&nbsp;ist&nbsp;nun&nbsp;das&nbsp;der&nbsp;Text&nbsp;nicht&nbsp;dem&nbsp;Fenster1<br />eingefügt&nbsp;wird&nbsp;sondern&nbsp;dem&nbsp;Fenster2<br />&nbsp;bzw.&nbsp;wird&nbsp;es&nbsp;immer&nbsp;dem&nbsp;zuletzt&nbsp;geöffnetem&nbsp;Frame&nbsp;eingefügt.<br />*/<br /><br /></span><span style="color: #007700">}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div><br />
<br />
Weiß jemand was ich falsch mache?  :8<br />
<br />
Danke schon mal ;)</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>uncopyable</dc:creator>
			<guid isPermaLink="true">java-95/problem-handling-multiple-frames-13050</guid>
		</item>
		<item>
			<title>Whatsapp Sourcecode</title>
			<link>java-95/whatsapp-sourcecode-12331?goto=newpost</link>
			<pubDate>Wed, 16 May 2012 12:46:48 GMT</pubDate>
			<description>Da ich es leid bin immer mit dem Smartphone zu antworten wollte ich mir ein Desktop Client für Whatsapp schreiben leider bin ich aus Zeitmangel noch...</description>
			<content:encoded><![CDATA[<div>Da ich es leid bin immer mit dem Smartphone zu antworten wollte ich mir ein Desktop Client für Whatsapp schreiben leider bin ich aus Zeitmangel noch nicht dazu gekommen. <br />
<br />
Jedenfalls hier mal die dekompilierte App ;)<br />
<br />
<a href="http://www.xup.in/dl,85917963/WhatsApp_source_ver2.6.rar/" target="_blank" rel="nofollow">Download: WhatsApp_source_ver2.6.rar | xup.in</a><br />
<br />
<b>Nützliche Links:</b><br />
<a href="http://binblog.info/2011/06/18/whatsapp-protokollanalyse/" target="_blank" rel="nofollow">WhatsApp: Protokollanalyse « #!/bin/blog</a><br />
<a href="http://jmittendorfer.hostingsociety.com/artikel/2011/12/whatsapp-erlaubt-bruteforce-auf-telefonnummern" target="_blank" rel="nofollow">WhatsApp erlaubt Bruteforce auf Telefonnummern | Johannes Mittendorfer</a><br />
<br />
mfg :D</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>uncopyable</dc:creator>
			<guid isPermaLink="true">java-95/whatsapp-sourcecode-12331</guid>
		</item>
		<item>
			<title><![CDATA[[Bukkit] PommesBude - Der Hunger für zwischendurch.]]></title>
			<link>java-95/bukkit-pommesbude-der-hunger-fuer-zwischendurch-12205?goto=newpost</link>
			<pubDate>Sun, 13 May 2012 18:56:28 GMT</pubDate>
			<description>Anhang 6120 (https://u-labs.de/forum/attachment.php?attachmentid=6120) 
 
Pommesbude!! 
Dies ist das erste Plugin was ich gecodet habe, ich habe auch...</description>
			<content:encoded><![CDATA[<div><img src="https://u-labs.de/forum/attachment.php?attachmentid=6120&amp;d=1389547796" border="0" alt="Name:  pommes.png
Hits: 216
Größe:  29,9 KB" class="thumbnail" style="float:CONFIG" /><br />
<br />
<font size="3"><font color="#ffff00">Pommesbude</font><i><font color="#ff6600">!!</font></i></font><br />
<font size="1"><i>Dies ist das erste Plugin was ich gecodet habe, ich habe auch heute erst Java angefangen zu lernen.</i></font><br />
<br />
<a href="http://www.minecraftwiki.net/images/1/18/Grid_Blaze_Rod.png" target="_blank" rel="nofollow"><img src="http://u-img.net/img/2542Da.png" border="0" alt="" /> BILD ANZEIGEN </a> <a href="http://u-hacks.net/news-und-ankuendigungen-4/erlaubte-imagehoster-17046/" target="_blank" rel="nofollow"> [Warum wird das Bild nicht angezeigt?]</a><i>Wolltet ihr auch schon immer mal Pommes in Minecraft mit euren Liebsten essen?<br />
<a href="http://www.minecraftwiki.net/images/1/18/Grid_Blaze_Rod.png" target="_blank" rel="nofollow"><img src="http://u-img.net/img/2542Da.png" border="0" alt="" /> BILD ANZEIGEN </a> <a href="http://u-hacks.net/news-und-ankuendigungen-4/erlaubte-imagehoster-17046/" target="_blank" rel="nofollow"> [Warum wird das Bild nicht angezeigt?]</a>Oder braucht ihr etwas für den kleinen Hunger für zwischendurch?<br />
<a href="http://www.minecraftwiki.net/images/1/18/Grid_Blaze_Rod.png" target="_blank" rel="nofollow"><img src="http://u-img.net/img/2542Da.png" border="0" alt="" /> BILD ANZEIGEN </a> <a href="http://u-hacks.net/news-und-ankuendigungen-4/erlaubte-imagehoster-17046/" target="_blank" rel="nofollow"> [Warum wird das Bild nicht angezeigt?]</a>Kein Bock auf Apfel oder Brot?<br />
<br />
<a href="http://www.zertifikate-schaden.de/files/images/arrow.png" target="_blank" rel="nofollow"><img src="http://u-img.net/img/2542Da.png" border="0" alt="" /> BILD ANZEIGEN </a> <a href="http://u-hacks.net/news-und-ankuendigungen-4/erlaubte-imagehoster-17046/" target="_blank" rel="nofollow"> [Warum wird das Bild nicht angezeigt?]</a><b>Hier die Lösung! <font color="#ff6600">PommesBude</font>!!</b><br />
<br />
<a href="http://www.zertifikate-schaden.de/files/images/arrow.png" target="_blank" rel="nofollow"><img src="http://u-img.net/img/2542Da.png" border="0" alt="" /> BILD ANZEIGEN </a> <a href="http://u-hacks.net/news-und-ankuendigungen-4/erlaubte-imagehoster-17046/" target="_blank" rel="nofollow"> [Warum wird das Bild nicht angezeigt?]</a><b>Erklärung</b></i><br />
Vorweg, das Plugin hat <u>kein</u> Permissions- support.<br />
Jeder kennt es, man ist in der Wildnis &amp;' hat aufeinmal kein leben mehr. Essen muss her<i>!!</i> Aber von wo!?<br />
Dafür gibt es jetzt <i><u>Pommesbude!!</u></i>. Die User geben im Chat Pommes ein dann bekommen sie 4 Blazerods.<br />
Wenn man mit denen Rechtsklick macht bekommt man ein halbes Leben sprich 4 Stück = 2 Herzen.<br />
Diesen Command lässt sich nur jede 5 Minuten ausführen.<br />
<br />
<a href="http://www.zertifikate-schaden.de/files/images/arrow.png" target="_blank" rel="nofollow"><img src="http://u-img.net/img/2542Da.png" border="0" alt="" /> BILD ANZEIGEN </a> <a href="http://u-hacks.net/news-und-ankuendigungen-4/erlaubte-imagehoster-17046/" target="_blank" rel="nofollow"> [Warum wird das Bild nicht angezeigt?]</a><b>Features</b><br />
Statistiken -&gt; <a href="http://frommig.de/pommesbude/" target="_blank" rel="nofollow">Pommesbude</a> Danke an <a href="https://board.nitrado.net/user/8884-gdserver/" target="_blank" rel="nofollow">GDserver</a><a href="https://board.nitrado.net/icon/thankS.png" target="_blank" rel="nofollow"><img src="http://u-img.net/img/2542Da.png" border="0" alt="" /> BILD ANZEIGEN </a> <a href="http://u-hacks.net/news-und-ankuendigungen-4/erlaubte-imagehoster-17046/" target="_blank" rel="nofollow"> [Warum wird das Bild nicht angezeigt?]</a><br />
<br />
<a href="http://www.zertifikate-schaden.de/files/images/arrow.png" target="_blank" rel="nofollow"><img src="http://u-img.net/img/2542Da.png" border="0" alt="" /> BILD ANZEIGEN </a> <a href="http://u-hacks.net/news-und-ankuendigungen-4/erlaubte-imagehoster-17046/" target="_blank" rel="nofollow"> [Warum wird das Bild nicht angezeigt?]</a><b>Commands</b><br />
/pommes<br />
<br />
<a href="http://www.zertifikate-schaden.de/files/images/arrow.png" target="_blank" rel="nofollow"><img src="http://u-img.net/img/2542Da.png" border="0" alt="" /> BILD ANZEIGEN </a> <a href="http://u-hacks.net/news-und-ankuendigungen-4/erlaubte-imagehoster-17046/" target="_blank" rel="nofollow"> [Warum wird das Bild nicht angezeigt?]</a><b>Download</b><br />
<a href="http://www.frommig.de/pommesbude/PommesBude.jar" target="_blank" rel="nofollow">Download 1.0.2</a><br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b>:<i>Changelog</i> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
Version 1.0.2:<br />
config.yml hinzugefügt.<br />
Thx an <a href="https://board.nitrado.net/user/858-nolig/" target="_blank" rel="nofollow">Nolig</a> der dabei geholfen hat die Config Datei zu machen.<br />
Thx an <a href="https://board.nitrado.net/user/8884-gdserver/" target="_blank" rel="nofollow">GDserver</a> der ein kleinen PHP script fürs Plugin geschrieben hat für <a href="http://frommig.de/pommesbude/" target="_blank" rel="nofollow">Statistiken</a> usw..
</div>
</div>
</div><br />
<font size="3"><b>Viel Spaß mit dem unnötigsten Plugin ever ;)</b></font></div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Angehängte Grafiken</legend>
				<div style="padding:10px">
				<img class="attach" src="https://u-labs.de/forum/attachment.php?attachmentid=6120&amp;stc=1&amp;d=1389547796" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>FromMiG</dc:creator>
			<guid isPermaLink="true">java-95/bukkit-pommesbude-der-hunger-fuer-zwischendurch-12205</guid>
		</item>
		<item>
			<title><![CDATA[[Java]Aus einer Klasse, zwei machen]]></title>
			<link>java-95/java-aus-einer-klasse-zwei-machen-12096?goto=newpost</link>
			<pubDate>Thu, 10 May 2012 18:38:52 GMT</pubDate>
			<description>Hallo ihr Freunde der Programmierung! 
 
Wir haben in der Schule so ein Aufgabenblatt bekommen, nichts besonderes, totaler Crap. Hier erstmal der...</description>
			<content:encoded><![CDATA[<div>Hallo ihr Freunde der Programmierung!<br />
<br />
Wir haben in der Schule so ein Aufgabenblatt bekommen, nichts besonderes, totaler Crap. Hier erstmal der Code:<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b>:<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">util</span><span style="color: #007700">.</span><span style="color: #0000BB">Scanner</span><span style="color: #007700">;<br /><br />public&nbsp;class&nbsp;</span><span style="color: #0000BB">Klausur</span><span style="color: #007700">{<br />&nbsp;&nbsp;public&nbsp;static&nbsp;</span><span style="color: #0000BB">void&nbsp;main</span><span style="color: #007700">(</span><span style="color: #0000BB">String&nbsp;args</span><span style="color: #007700">&#91;&#93;){<br />&nbsp;&nbsp;</span><span style="color: #0000BB">double&nbsp;Kilometer</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Minuten</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">KostenTelekom</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">KostenArcor</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">KostenMobilcom</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Guenstig</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">String&nbsp;antwort</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">anbieter</span><span style="color: #007700">=</span><span style="color: #DD0000">""</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">Scanner&nbsp;eingabe&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Scanner</span><span style="color: #007700">(</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">in</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;do{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"Geben&nbsp;sie&nbsp;die&nbsp;Entfernung&nbsp;zum&nbsp;Gesprächspartner&nbsp;(in&nbsp;Km)&nbsp;an:"</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">Kilometer&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">eingabe</span><span style="color: #007700">.</span><span style="color: #0000BB">nextDouble</span><span style="color: #007700">();<br />&nbsp;&nbsp;}while(</span><span style="color: #0000BB">Kilometer&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">||&nbsp;</span><span style="color: #0000BB">Kilometer&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">800&nbsp;</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"Geben&nbsp;sie&nbsp;die&nbsp;Gesprächsdauer(in&nbsp;Minuten)&nbsp;an:"</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">Minuten&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">eingabe</span><span style="color: #007700">.</span><span style="color: #0000BB">nextDouble</span><span style="color: #007700">();<br /><br />&nbsp;&nbsp;if(</span><span style="color: #0000BB">Kilometer&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">20</span><span style="color: #007700">){<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KostenTelekom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Minuten</span><span style="color: #007700">/</span><span style="color: #0000BB">3</span><span style="color: #007700">*</span><span style="color: #0000BB">0.12</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KostenArcor&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Minuten</span><span style="color: #007700">/</span><span style="color: #0000BB">3</span><span style="color: #007700">*</span><span style="color: #0000BB">0.20</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KostenMobilcom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Minuten</span><span style="color: #007700">/</span><span style="color: #0000BB">3</span><span style="color: #007700">*</span><span style="color: #0000BB">0.25</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Guenstig&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">KostenTelekom</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">anbieter&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Telekom"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;}else&nbsp;if(</span><span style="color: #0000BB">Kilometer&nbsp;</span><span style="color: #007700">&gt;=&nbsp;</span><span style="color: #0000BB">21&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;</span><span style="color: #0000BB">Kilometer&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">50</span><span style="color: #007700">){<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KostenTelekom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Minuten</span><span style="color: #007700">/</span><span style="color: #0000BB">3</span><span style="color: #007700">*</span><span style="color: #0000BB">0.36</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KostenArcor&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Minuten</span><span style="color: #007700">/</span><span style="color: #0000BB">3</span><span style="color: #007700">*</span><span style="color: #0000BB">0.30</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KostenMobilcom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Minuten</span><span style="color: #007700">/</span><span style="color: #0000BB">3</span><span style="color: #007700">*</span><span style="color: #0000BB">0.40</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Guenstig&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">KostenArcor</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">anbieter&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Arcor"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;}else&nbsp;if(</span><span style="color: #0000BB">Kilometer&nbsp;</span><span style="color: #007700">&gt;=&nbsp;</span><span style="color: #0000BB">50</span><span style="color: #007700">){<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KostenTelekom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Minuten</span><span style="color: #007700">/</span><span style="color: #0000BB">3</span><span style="color: #007700">*</span><span style="color: #0000BB">0.60</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KostenArcor&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Minuten</span><span style="color: #007700">/</span><span style="color: #0000BB">3</span><span style="color: #007700">*</span><span style="color: #0000BB">0.70</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KostenMobilcom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Minuten</span><span style="color: #007700">/</span><span style="color: #0000BB">3</span><span style="color: #007700">*</span><span style="color: #0000BB">0.50</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Guenstig&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">KostenMobilcom</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">anbieter&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Mobilcom"</span><span style="color: #007700">;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"----------------------------------------------------------------------"</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"Anbieter:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gesprächskosten:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;zu&nbsp;wählende&nbsp;Vorwahl:"</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"----------------------------------------------------------------------"</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #0000BB">String</span><span style="color: #007700">.</span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #DD0000">"Telekom:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%s&nbsp;Euro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;keine-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"</span><span style="color: #007700">,&nbsp;(float)</span><span style="color: #0000BB">KostenTelekom</span><span style="color: #007700">));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #0000BB">String</span><span style="color: #007700">.</span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #DD0000">"Arcor:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%s&nbsp;Euro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;10&nbsp;19&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"</span><span style="color: #007700">,&nbsp;(float)</span><span style="color: #0000BB">KostenArcor</span><span style="color: #007700">));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #0000BB">String</span><span style="color: #007700">.</span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #DD0000">"Mobilcom:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%s&nbsp;Euro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;10&nbsp;70&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"</span><span style="color: #007700">,&nbsp;(float)</span><span style="color: #0000BB">KostenMobilcom</span><span style="color: #007700">));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"----------------------------------------------------------------------"</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #0000BB">String</span><span style="color: #007700">.</span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #DD0000">"Der&nbsp;günstigste&nbsp;Anbieter&nbsp;ist&nbsp;%s&nbsp;mit&nbsp;einem&nbsp;Preis&nbsp;von:&nbsp;%s&nbsp;Euro"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">anbieter</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Guenstig</span><span style="color: #007700">));<br /><br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"----------------------------------------------------------------------"</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"Möchten&nbsp;sie&nbsp;das&nbsp;Programm&nbsp;wiederholen?&nbsp;(y/n)"</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">antwort&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">eingabe</span><span style="color: #007700">.</span><span style="color: #0000BB">next</span><span style="color: #007700">();<br />&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"&nbsp;"</span><span style="color: #007700">);<br />&nbsp;&nbsp;if(</span><span style="color: #0000BB">antwort</span><span style="color: #007700">.</span><span style="color: #0000BB">equals</span><span style="color: #007700">(</span><span style="color: #DD0000">"y"</span><span style="color: #007700">)&nbsp;||&nbsp;</span><span style="color: #0000BB">antwort</span><span style="color: #007700">.</span><span style="color: #0000BB">equals</span><span style="color: #007700">(</span><span style="color: #DD0000">"Y"</span><span style="color: #007700">)){<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">main</span><span style="color: #007700">(</span><span style="color: #0000BB">args</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;return;<br />&nbsp;&nbsp;}&nbsp;else{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"Das&nbsp;Programm&nbsp;wird&nbsp;geschlossen"</span><span style="color: #007700">);<br />&nbsp;&nbsp;}<br />&nbsp;}<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>
</div>
</div>
</div><br />
<br />
Naja, wie ihr im Topic lesen könnt, wollte ich fragen, wie ich diese Klasse nun in zwei spaltn kann. Es soll in der einen die Berechnung ausgeführt werden und in der Anderen die Ausgabe vom ganzen. <br />
<br />
Ich hab kein Plan, wie ich daran gehen soll, wär super, wenn mir das einer erklären könnte bzw. posten würde, wie ich das ganze anstelle.<br />
<br />
MfG,<br />
aquastar</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>aquastar</dc:creator>
			<guid isPermaLink="true">java-95/java-aus-einer-klasse-zwei-machen-12096</guid>
		</item>
		<item>
			<title>java.lang.NegativeArraySizeException</title>
			<link>java-95/java-lang-negativearraysizeexception-11490?goto=newpost</link>
			<pubDate>Fri, 27 Apr 2012 09:33:42 GMT</pubDate>
			<description>Hallo :)  
 
Ich hab mal wieder ein Problem in Java..  
 
Ich möchte einen String über Socket senden klappt auch wunderbar nur sobald die lange...</description>
			<content:encoded><![CDATA[<div>Hallo :) <br />
<br />
Ich hab mal wieder ein Problem in Java.. <br />
<br />
Ich möchte einen String über Socket senden klappt auch wunderbar nur sobald die lange meines Strings über 127 Zeichen ist bekomme ich eine java.lang.NegativeArraySizeException <br />
<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"><br />&nbsp;OutputStream&nbsp;&nbsp;out&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">socket</span><span style="color: #007700">.</span><span style="color: #0000BB">getOutputStream</span><span style="color: #007700">();<br /><br />&nbsp;....&nbsp;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">String&nbsp;message&nbsp;&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Dies&nbsp;ist&nbsp;ein&nbsp;String&nbsp;mit&nbsp;127&nbsp;Zeichen"</span><span style="color: #007700">;&nbsp;</span><span style="color: #FF8000">//&nbsp;Beispiel!<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">String&nbsp;message1&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Dies&nbsp;ist&nbsp;ein&nbsp;String&nbsp;mit&nbsp;mehr&nbsp;als&nbsp;127&nbsp;Zeichen"</span><span style="color: #007700">;&nbsp;</span><span style="color: #FF8000">//&nbsp;Beispiel!<br /><br />//&nbsp;senden&nbsp;<br /><br />&nbsp;</span><span style="color: #0000BB">send</span><span style="color: #007700">(</span><span style="color: #0000BB">message</span><span style="color: #007700">.</span><span style="color: #0000BB">length</span><span style="color: #007700">(),</span><span style="color: #0000BB">message</span><span style="color: #007700">.</span><span style="color: #0000BB">getBytes</span><span style="color: #007700">());&nbsp;</span><span style="color: #0000BB">Wird&nbsp;gesendet<br />&nbsp;send</span><span style="color: #007700">(</span><span style="color: #0000BB">message1</span><span style="color: #007700">.</span><span style="color: #0000BB">length</span><span style="color: #007700">(),</span><span style="color: #0000BB">message1</span><span style="color: #007700">.</span><span style="color: #0000BB">getBytes</span><span style="color: #007700">());&nbsp;</span><span style="color: #0000BB">Nicht<br /><br />&nbsp;</span><span style="color: #007700">private&nbsp;</span><span style="color: #0000BB">void&nbsp;send</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;length</span><span style="color: #007700">,</span><span style="color: #0000BB">byte</span><span style="color: #007700">&#91;&#93;&nbsp;</span><span style="color: #0000BB">s</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">write</span><span style="color: #007700">(</span><span style="color: #0000BB">length</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">write</span><span style="color: #007700">(</span><span style="color: #0000BB">s</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(</span><span style="color: #0000BB">Exception&nbsp;ex</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #0000BB">ex</span><span style="color: #007700">.</span><span style="color: #0000BB">getMessage</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br /></span><span style="color: #FF8000">//&nbsp;lesen&nbsp;<br />&nbsp;<br />&nbsp;</span><span style="color: #007700">...<br /><br />&nbsp;</span><span style="color: #0000BB">InputStream&nbsp;in&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">socket</span><span style="color: #007700">.</span><span style="color: #0000BB">getInputStream</span><span style="color: #007700">();<br /><br />&nbsp;</span><span style="color: #0000BB">byte&nbsp;length&nbsp;</span><span style="color: #007700">=&nbsp;&nbsp;(</span><span style="color: #0000BB">byte</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">in</span><span style="color: #007700">.</span><span style="color: #0000BB">read</span><span style="color: #007700">();&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;&nbsp;<br />&nbsp;</span><span style="color: #0000BB">byte</span><span style="color: #007700">&#91;&#93;&nbsp;</span><span style="color: #0000BB">bytes&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">byte</span><span style="color: #007700">&#91;(int)&nbsp;</span><span style="color: #0000BB">length</span><span style="color: #007700">&#93;;<br />&nbsp;</span><span style="color: #0000BB">in</span><span style="color: #007700">.</span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">bytes</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&lt;-</span><span style="color: #0000BB">java</span><span style="color: #007700">.</span><span style="color: #0000BB">lang</span><span style="color: #007700">.</span><span style="color: #0000BB">NegativeArraySizeException<br />&nbsp;System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">String</span><span style="color: #007700">(</span><span style="color: #0000BB">bytes</span><span style="color: #007700">));&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Ja ich weiß das ich es auch anders machen könnte BufferedReade, PrintWriter ect.</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>uncopyable</dc:creator>
			<guid isPermaLink="true">java-95/java-lang-negativearraysizeexception-11490</guid>
		</item>
		<item>
			<title>Sockets: send wird erst zu Programmende ausgeführt</title>
			<link>java-95/sockets-send-wird-erst-zu-programmende-ausgefuehrt-11276?goto=newpost</link>
			<pubDate>Sun, 22 Apr 2012 17:45:04 GMT</pubDate>
			<description>Abend :) 
 
Ich hab ein Problem beim senden und zwar wird meine Nachrichten erst gesendet nachdem ich das Applet beendet hab. 
 
Hier mal mein Code 
...</description>
			<content:encoded><![CDATA[<div>Abend :)<br />
<br />
Ich hab ein Problem beim senden und zwar wird meine Nachrichten erst gesendet nachdem ich das Applet beendet hab.<br />
<br />
Hier mal mein Code<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">import&nbsp;javax</span><span style="color: #007700">.</span><span style="color: #0000BB">swing</span><span style="color: #007700">.</span><span style="color: #0000BB">JApplet</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">io</span><span style="color: #007700">.</span><span style="color: #0000BB">DataInputStream</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">io</span><span style="color: #007700">.</span><span style="color: #0000BB">IOException</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">io</span><span style="color: #007700">.</span><span style="color: #0000BB">PrintStream</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">awt</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">awt</span><span style="color: #007700">.</span><span style="color: #0000BB">event</span><span style="color: #007700">.</span><span style="color: #0000BB">ActionEvent</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">awt</span><span style="color: #007700">.</span><span style="color: #0000BB">event</span><span style="color: #007700">.</span><span style="color: #0000BB">ActionListener</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">net</span><span style="color: #007700">.</span><span style="color: #0000BB">Socket</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">net</span><span style="color: #007700">.</span><span style="color: #0000BB">URL</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">net</span><span style="color: #007700">.</span><span style="color: #0000BB">UnknownHostException</span><span style="color: #007700">;<br /><br />public&nbsp;class&nbsp;</span><span style="color: #0000BB">TestApplet&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">JApplet&nbsp;</span><span style="color: #007700">implements&nbsp;</span><span style="color: #0000BB">Runnable&nbsp;&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">Thread&nbsp;thread</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">Socket&nbsp;socket</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">DataInputStream&nbsp;in</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">PrintStream&nbsp;out</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">void&nbsp;init</span><span style="color: #007700">()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Komponenten&nbsp;laden&nbsp;...<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<br /><br />&nbsp;&nbsp;&nbsp;@</span><span style="color: #0000BB">Override<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">void&nbsp;start</span><span style="color: #007700">()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">connect</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">void&nbsp;</span><span style="color: #007700">print(</span><span style="color: #0000BB">String&nbsp;msg</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #0000BB">msg</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">void&nbsp;connect</span><span style="color: #007700">()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">socket&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Socket</span><span style="color: #007700">(</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getCodeBase</span><span style="color: #007700">().</span><span style="color: #0000BB">getHost</span><span style="color: #007700">(),&nbsp;</span><span style="color: #0000BB">8000</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">in&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">DataInputStream</span><span style="color: #007700">(</span><span style="color: #0000BB">socket</span><span style="color: #007700">.</span><span style="color: #0000BB">getInputStream</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">out&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">PrintStream</span><span style="color: #007700">(</span><span style="color: #0000BB">socket</span><span style="color: #007700">.</span><span style="color: #0000BB">getOutputStream</span><span style="color: #007700">());<br />&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">socket</span><span style="color: #007700">.</span><span style="color: #0000BB">isConnected</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;</span><span style="color: #0000BB">send</span><span style="color: #007700">(</span><span style="color: #DD0000">"Hallo?"</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">thread&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">thread&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Thread</span><span style="color: #007700">(</span><span style="color: #0000BB">this</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">thread</span><span style="color: #007700">.</span><span style="color: #0000BB">setPriority</span><span style="color: #007700">(</span><span style="color: #0000BB">Thread</span><span style="color: #007700">.</span><span style="color: #0000BB">MIN_PRIORITY</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">thread</span><span style="color: #007700">.</span><span style="color: #0000BB">start</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(</span><span style="color: #0000BB">IOException&nbsp;ex</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(</span><span style="color: #0000BB">e</span><span style="color: #007700">.</span><span style="color: #0000BB">getMessage</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;@</span><span style="color: #0000BB">Override<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">void&nbsp;stop</span><span style="color: #007700">()&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">socket</span><span style="color: #007700">.</span><span style="color: #0000BB">close</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(</span><span style="color: #0000BB">IOException&nbsp;e</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(</span><span style="color: #0000BB">e</span><span style="color: #007700">.</span><span style="color: #0000BB">getMessage</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;((</span><span style="color: #0000BB">thread&nbsp;</span><span style="color: #007700">!=</span><span style="color: #0000BB">null</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">thread</span><span style="color: #007700">.</span><span style="color: #0000BB">isAlive</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">thread</span><span style="color: #007700">.</span><span style="color: #0000BB">stop</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">thread&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;@</span><span style="color: #0000BB">Override<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">void&nbsp;destroy</span><span style="color: #007700">()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.exit(</span><span style="color: #0000BB">0</span><span style="color: #007700">);&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Applet&nbsp;muss&nbsp;signiert&nbsp;sein!<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">void&nbsp;send</span><span style="color: #007700">(</span><span style="color: #0000BB">String&nbsp;message</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">socket&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #0000BB">null&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;</span><span style="color: #0000BB">socket</span><span style="color: #007700">.</span><span style="color: #0000BB">isConnected</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">write</span><span style="color: #007700">(</span><span style="color: #0000BB">message</span><span style="color: #007700">.</span><span style="color: #0000BB">getBytes</span><span style="color: #007700">(</span><span style="color: #DD0000">"UTF8"</span><span style="color: #007700">));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">flush</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(</span><span style="color: #0000BB">IOException&nbsp;e</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(</span><span style="color: #0000BB">e</span><span style="color: #007700">.</span><span style="color: #0000BB">getMessage</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;@</span><span style="color: #0000BB">Override<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">void&nbsp;run</span><span style="color: #007700">()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">String&nbsp;line</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">line&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">in</span><span style="color: #007700">.</span><span style="color: #0000BB">readLine</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">line</span><span style="color: #007700">!=</span><span style="color: #0000BB">null</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(</span><span style="color: #0000BB">line</span><span style="color: #007700">+</span><span style="color: #DD0000">'\n'&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch&nbsp;(</span><span style="color: #0000BB">Exception&nbsp;e</span><span style="color: #007700">)&nbsp;{&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(</span><span style="color: #0000BB">e</span><span style="color: #007700">.</span><span style="color: #0000BB">getMessage</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div></div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>uncopyable</dc:creator>
			<guid isPermaLink="true">java-95/sockets-send-wird-erst-zu-programmende-ausgefuehrt-11276</guid>
		</item>
		<item>
			<title>Java New Thread</title>
			<link>java-95/java-new-thread-10219?goto=newpost</link>
			<pubDate>Wed, 04 Apr 2012 11:43:28 GMT</pubDate>
			<description>Hallo,  
 
gibt es in Java ne möglich einen Neuen Thread mit Parameter und return value zu starten?   
 
 
Mit Parameter  
 
PHP: 
--------- 
class...</description>
			<content:encoded><![CDATA[<div>Hallo, <br />
<br />
gibt es in Java ne möglich einen Neuen Thread mit Parameter und return value zu starten?  <br />
<br />
<br />
Mit Parameter <br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">class&nbsp;</span><span style="color: #0000BB">MyThread&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">Thread&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">String&nbsp;to</span><span style="color: #007700">;<br />&nbsp;public&nbsp;</span><span style="color: #0000BB">MyThread</span><span style="color: #007700">(</span><span style="color: #0000BB">String&nbsp;to</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">to&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">to</span><span style="color: #007700">;<br />&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;@</span><span style="color: #0000BB">Override<br />&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">void&nbsp;run</span><span style="color: #007700">()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"hello&nbsp;"&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">to</span><span style="color: #007700">);<br />&nbsp;&nbsp;}<br />&nbsp;}<br />&nbsp;public&nbsp;static&nbsp;</span><span style="color: #0000BB">void&nbsp;main</span><span style="color: #007700">(</span><span style="color: #0000BB">String</span><span style="color: #007700">&#91;&#93;&nbsp;</span><span style="color: #0000BB">args</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">MyThread</span><span style="color: #007700">(</span><span style="color: #DD0000">"world!"</span><span style="color: #007700">).</span><span style="color: #0000BB">start</span><span style="color: #007700">();<br />&nbsp;}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Mit return value<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">util</span><span style="color: #007700">.</span><span style="color: #0000BB">concurrent</span><span style="color: #007700">.Callable;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">util</span><span style="color: #007700">.</span><span style="color: #0000BB">concurrent</span><span style="color: #007700">.</span><span style="color: #0000BB">ExecutionException</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">util</span><span style="color: #007700">.</span><span style="color: #0000BB">concurrent</span><span style="color: #007700">.</span><span style="color: #0000BB">ExecutorService</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">util</span><span style="color: #007700">.</span><span style="color: #0000BB">concurrent</span><span style="color: #007700">.</span><span style="color: #0000BB">Executors</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">util</span><span style="color: #007700">.</span><span style="color: #0000BB">concurrent</span><span style="color: #007700">.</span><span style="color: #0000BB">Future</span><span style="color: #007700">;<br /><br /><br />public&nbsp;class&nbsp;</span><span style="color: #0000BB">Main<br /></span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;</span><span style="color: #0000BB">void&nbsp;main</span><span style="color: #007700">(final&nbsp;</span><span style="color: #0000BB">String</span><span style="color: #007700">&#91;&#93;&nbsp;</span><span style="color: #0000BB">argv</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;final&nbsp;</span><span style="color: #0000BB">ExecutorService&nbsp;service</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;final&nbsp;</span><span style="color: #0000BB">Future</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">String</span><span style="color: #007700">&gt;&nbsp;&nbsp;</span><span style="color: #0000BB">task</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">service&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Executors</span><span style="color: #007700">.</span><span style="color: #0000BB">newFixedThreadPool</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">task&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">service</span><span style="color: #007700">.</span><span style="color: #0000BB">submit</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">Foo</span><span style="color: #007700">());<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;final&nbsp;</span><span style="color: #0000BB">String&nbsp;str</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;waits&nbsp;the&nbsp;10&nbsp;seconds&nbsp;for&nbsp;the&nbsp;Callable.call&nbsp;to&nbsp;finish.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">str&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">task</span><span style="color: #007700">.</span><span style="color: #0000BB">get</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #0000BB">str</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch(final&nbsp;</span><span style="color: #0000BB">InterruptedException&nbsp;ex</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ex</span><span style="color: #007700">.</span><span style="color: #0000BB">printStackTrace</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch(final&nbsp;</span><span style="color: #0000BB">ExecutionException&nbsp;ex</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ex</span><span style="color: #007700">.</span><span style="color: #0000BB">printStackTrace</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">service</span><span style="color: #007700">.</span><span style="color: #0000BB">shutdownNow</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br />class&nbsp;</span><span style="color: #0000BB">Foo<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">implements&nbsp;Callable&lt;</span><span style="color: #0000BB">String</span><span style="color: #007700">&gt;<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">String&nbsp;call</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;sleep&nbsp;for&nbsp;10&nbsp;seconds<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Thread</span><span style="color: #007700">.</span><span style="color: #0000BB">sleep</span><span style="color: #007700">(</span><span style="color: #0000BB">10&nbsp;</span><span style="color: #007700">*&nbsp;</span><span style="color: #0000BB">1000</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch(final&nbsp;</span><span style="color: #0000BB">InterruptedException&nbsp;ex</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ex</span><span style="color: #007700">.</span><span style="color: #0000BB">printStackTrace</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;(</span><span style="color: #DD0000">"Hello,&nbsp;World!"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Hab versucht die Beispiele zu kombinieren aber leider funktioniert das nicht so wie ich es gern hätte, vielleicht weiß einer von euch wie ich das am besten lösen kann? <br />
<br />
Danke schonmal :D</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>uncopyable</dc:creator>
			<guid isPermaLink="true">java-95/java-new-thread-10219</guid>
		</item>
		<item>
			<title>Start.bat</title>
			<link>java-95/start-bat-9962?goto=newpost</link>
			<pubDate>Sat, 31 Mar 2012 00:17:16 GMT</pubDate>
			<description>Hallo! 
 
Ich war grade dabei mein Chat online zu machen. Statt Butler loading.... kommt solche Meldungen 
 
http://www.myimg.de/?img=error1cc9f.png...</description>
			<content:encoded><![CDATA[<div>Hallo!<br />
<br />
Ich war grade dabei mein Chat online zu machen. Statt Butler loading.... kommt solche Meldungen<br />
<br />
<a href="http://www.myimg.de/?img=error1cc9f.png" target="_blank" rel="nofollow">http://www.myimg.de/?img=error1cc9f.png</a><br />
<br />
Kann mir jemand villeicht über TV helfen ?<br />
<br />
Danke im vorraus</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Tim</dc:creator>
			<guid isPermaLink="true">java-95/start-bat-9962</guid>
		</item>
		<item>
			<title>Java Obfuscator gesucht</title>
			<link>java-95/java-obfuscator-gesucht-9932?goto=newpost</link>
			<pubDate>Fri, 30 Mar 2012 13:18:20 GMT</pubDate>
			<description>Guten Tag, 
 
ich bin auf der Suche nach einem Tool zum Obfuscaten von Java Source. Kennt jemand ein gutes, möglichst kostenloses Tool? 
 
MfG,...</description>
			<content:encoded><![CDATA[<div>Guten Tag,<br />
<br />
ich bin auf der Suche nach einem Tool zum Obfuscaten von Java Source. Kennt jemand ein gutes, möglichst kostenloses Tool?<br />
<br />
MfG,<br />
Localhost</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Localhost</dc:creator>
			<guid isPermaLink="true">java-95/java-obfuscator-gesucht-9932</guid>
		</item>
		<item>
			<title><![CDATA[[Fehler] KRClient]]></title>
			<link>java-95/fehler-krclient-9917?goto=newpost</link>
			<pubDate>Fri, 30 Mar 2012 07:51:21 GMT</pubDate>
			<description>Hallo, 
Ich habe mich heute mal versucht den KRClient zu updaten. 
Ich bekomme nur immer den Fehler beim compilen: 
 
 
Code: 
---------...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
Ich habe mich heute mal versucht den KRClient zu updaten.<br />
Ich bekomme nur immer den Fehler beim compilen:<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b>:<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">C:\Users\Moritz\Downloads\KRClient_90aiz\KRClient\tmp&gt;javac -cp ..\javassist.jar<br />
;..\dist\KRClient.jar -d . ..\manipulate\*.java<br />
<br />
C:\Users\Moritz\Downloads\KRClient_90aiz\KRClient\tmp&gt;java -cp .;..\javassist.ja<br />
r;..\dist\KRClient.jar Manipulator<br />
javassist.NotFoundException: qp<br />
&nbsp; &nbsp; &nbsp; &nbsp; at javassist.ClassPool.get(ClassPool.java:440)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at Manipulator.main(Manipulator.java:18)<br />
<br />
C:\Users\Moritz\Downloads\KRClient_90aiz\KRClient\tmp&gt;del Manipulator.class<br />
<br />
C:\Users\Moritz\Downloads\KRClient_90aiz\KRClient\tmp&gt;jar uf ..\dist\KRClient.ja<br />
r *.class<br />
<br />
C:\Users\Moritz\Downloads\KRClient_90aiz\KRClient\tmp&gt;del /q *<br />
<br />
C:\Users\Moritz\Downloads\KRClient_90aiz\KRClient\tmp&gt;javac -cp ..\dist\KRClient<br />
.jar -d . ..\src\*.java<br />
..\src\Client.java:65: error: cannot find symbol<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.print(groupChat.getChannel(),<br />
&quot;Du hast soeben die Sample-Funktion benutzt.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ^<br />
&nbsp; symbol:&nbsp;  method getChannel()<br />
&nbsp; location: variable groupChat of type Start<br />
..\src\Client.java:69: error: cannot find symbol<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.print(groupChat.getChannel(), &quot;Aquasta<br />
r ist schwul&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ^<br />
&nbsp; symbol:&nbsp;  method getChannel()<br />
&nbsp; location: variable groupChat of type Start<br />
..\src\Client.java:86: error: cannot find symbol<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Enumeration channels = groupChat.getChannels();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^<br />
&nbsp; symbol:&nbsp;  method getChannels()<br />
&nbsp; location: variable groupChat of type Start<br />
3 errors<br />
<br />
C:\Users\Moritz\Downloads\KRClient_90aiz\KRClient\tmp&gt;jar uf ..\dist\KRClient.ja<br />
r *<br />
*: Datei oder Verzeichnis nicht vorhanden</code><hr />
</div>
</div>
</div>
</div><br />
Meine Manipulator.java:<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b>:<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">import javassist.ClassPool;<br />
import javassist.CtClass;<br />
import javassist.CtMethod;<br />
<br />
/**<br />
&nbsp;*<br />
&nbsp;* @author Flav<br />
&nbsp;*/<br />
public class Manipulator {<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static void main(String[] args) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ClassPool cp = ClassPool.getDefault();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cp.importPackage(&quot;java.applet.AppletContext&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cp.importPackage(&quot;java.net.URL&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cp.importPackage(&quot;java.util.Enumeration&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cp.importPackage(&quot;java.util.StringTokenizer&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CtClass groupChat = cp.get(&quot;qp&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;public AppletContext getAppletContext() {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;return new Context();&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;public URL getCodeBase() {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;return new URL(Parameter.get(\&quot;codebase\&quot;));&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.getDeclaredMethod(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;getDocumentBase&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ).setBody(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;{&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;return new URL(Parameter.get(\&quot;documentbase\&quot;));&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.getDeclaredMethod(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;getParameter&quot;, new CtClass[] { cp.get(&quot;java.lang.String&quot;) }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ).setName(&quot;getParameterHook&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;public String getParameter(String param1) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;String param = Parameter.get($1);&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;return param != null ? param : getParameterHook($1);&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;public String getButler() {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;return (String) bp.elementAt(0);&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;public String getNickname() {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;return _();&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;public String getChannel() {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;return bd();&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;public Enumeration getChannels() {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;return l();&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;public void print(String param1, String param2) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;qb frame = k($1);&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;if (frame != null) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;af panel = frame.a;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;panel.l($2);&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;public void receive(String param1) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;if ($1.startsWith(\&quot;:\&quot; + u)) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;a($1, (\&quot;:\&quot; + u).length());&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;} else {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;af(new StringTokenizer($1, u, $1.startsWith(\&quot;k\&quot; + u)));&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;public void send(String param1) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;a($1, false, 0);&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.getDeclaredMethod(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;a&quot;, new CtClass[] { cp.get(&quot;java.lang.String&quot;), cp.get(&quot;int&quot;) }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ).setName(&quot;parseModuleInput&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;private final void a(String param1, int param2) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;parseModuleInput($1, $2);&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.getDeclaredMethod(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;af&quot;, new CtClass[] { cp.get(&quot;java.util.StringTokenizer&quot;) }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ).setName(&quot;parseInput&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;private final void af(StringTokenizer param1) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;String opcode = $1.nextToken();&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;StringBuilder buffer = new StringBuilder(opcode);&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;while ($1.hasMoreTokens()) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;if (!opcode.equals(\&quot;k\&quot;)) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;buffer.append(u);&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;buffer.append($1.nextToken());&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;String packet = buffer.toString();&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;parseInput(new StringTokenizer(packet, u, packet.startsWith(\&quot;k\&quot; + u)));&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.getDeclaredMethod(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;a&quot;, new CtClass[] { cp.get(&quot;java.lang.String&quot;), cp.get(&quot;boolean&quot;), cp.get(&quot;int&quot;) }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ).setName(&quot;parseOutput&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.addMethod(CtMethod.make(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;public synchronized boolean a(String param1, boolean param2, int param3) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;String[] tokens = $1.split(u);&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;if (tokens[0].equals(\&quot;e\&quot;)) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;String msg = tokens[2];&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;String cmd = msg.substring(1).split(\&quot; \&quot;)[0].trim().toLowerCase();&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;String arg = \&quot;\&quot;;&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;if (msg.length() &gt; cmd.length() + 1) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;arg = msg.substring(msg.indexOf(' ') + 1);&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;if (cmd.equals(\&quot;sample\&quot;)) {&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;print(getChannel(), \&quot;Du hast soeben die Sample-Funktion benutzt.\&quot;);&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;return true;&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;return parseOutput($1, $2, $3);&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +&nbsp; &nbsp; &nbsp; &nbsp; &quot;}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , groupChat));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; groupChat.writeFile();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (Exception e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}</code><hr />
</div>
</div>
</div>
</div></div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>rVs14</dc:creator>
			<guid isPermaLink="true">java-95/fehler-krclient-9917</guid>
		</item>
		<item>
			<title><![CDATA[[Java] ArrayIndexOutOfBoundsException]]></title>
			<link>java-95/java-arrayindexoutofboundsexception-9325?goto=newpost</link>
			<pubDate>Mon, 19 Mar 2012 18:42:47 GMT</pubDate>
			<description>Hallo! 
 
Irgendwie finde ich den Fehler nicht, ich gebe euch einfach mal den Source und die dazu ausgespuckte Exception. 
 
 
 
PHP: 
---------...</description>
			<content:encoded><![CDATA[<div>Hallo!<br />
<br />
Irgendwie finde ich den Fehler nicht, ich gebe euch einfach mal den Source und die dazu ausgespuckte Exception.<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">util</span><span style="color: #007700">.</span><span style="color: #0000BB">Scanner</span><span style="color: #007700">;<br /><br />public&nbsp;class&nbsp;</span><span style="color: #0000BB">Test_Project&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;</span><span style="color: #0000BB">void&nbsp;main</span><span style="color: #007700">(</span><span style="color: #0000BB">String</span><span style="color: #007700">&#91;&#93;&nbsp;</span><span style="color: #0000BB">args</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Scanner&nbsp;s&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Scanner</span><span style="color: #007700">(</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">in</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">&#91;&#93;&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"Welche&nbsp;zwei&nbsp;Zahlen&nbsp;möchtest&nbsp;Du&nbsp;miteinander&nbsp;addieren?"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"Bitte&nbsp;gib&nbsp;die&nbsp;erste&nbsp;Zahle&nbsp;ein!"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">0</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">s</span><span style="color: #007700">.</span><span style="color: #0000BB">nextInt</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #DD0000">"Bitte&nbsp;gib&nbsp;die&nbsp;zweite&nbsp;Zahl&nbsp;ein!"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">s</span><span style="color: #007700">.</span><span style="color: #0000BB">nextInt</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #0000BB">String</span><span style="color: #007700">.</span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #DD0000">"Das&nbsp;Ergebnis&nbsp;aus&nbsp;deinen&nbsp;Zahlen&nbsp;%s&nbsp;und&nbsp;%s&nbsp;ergibt&nbsp;%s"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">0</span><span style="color: #007700">&#93;,&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;,&nbsp;(</span><span style="color: #0000BB">i</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">0</span><span style="color: #007700">&#93;+</span><span style="color: #0000BB">i</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;)));<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Compiler + Exception:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">Welche&nbsp;zwei&nbsp;Zahlen&nbsp;möchtest&nbsp;Du&nbsp;miteinander&nbsp;addieren</span><span style="color: #007700">?<br /></span><span style="color: #0000BB">Bitte&nbsp;gib&nbsp;</span><span style="color: #007700">die&nbsp;</span><span style="color: #0000BB">erste&nbsp;Zahle&nbsp;ein</span><span style="color: #007700">!<br /></span><span style="color: #0000BB">500<br />Bitte&nbsp;gib&nbsp;</span><span style="color: #007700">die&nbsp;</span><span style="color: #0000BB">zweite&nbsp;Zahl&nbsp;ein</span><span style="color: #007700">!<br /></span><span style="color: #0000BB">400<br />Exception&nbsp;in&nbsp;thread&nbsp;</span><span style="color: #DD0000">"main"&nbsp;</span><span style="color: #0000BB">java</span><span style="color: #007700">.</span><span style="color: #0000BB">lang</span><span style="color: #007700">.</span><span style="color: #0000BB">ArrayIndexOutOfBoundsException</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">1<br />&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;Test_Project</span><span style="color: #007700">.</span><span style="color: #0000BB">main</span><span style="color: #007700">(</span><span style="color: #0000BB">Test_Project</span><span style="color: #007700">.</span><span style="color: #0000BB">java</span><span style="color: #007700">:</span><span style="color: #0000BB">15</span><span style="color: #007700">)&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Mehr kann ich dazu eigentlich auch nicht sagen, ich verstehe nur nicht, warum er diese Fehlermeldung ausspuckt.<br />
<br />
Gruß</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>aquastar</dc:creator>
			<guid isPermaLink="true">java-95/java-arrayindexoutofboundsexception-9325</guid>
		</item>
		<item>
			<title>Bananachat CommandParser Fehler</title>
			<link>java-95/bananachat-commandparser-fehler-8880?goto=newpost</link>
			<pubDate>Mon, 12 Mar 2012 16:25:40 GMT</pubDate>
			<description>Hallo^^ 
Da es keinen Support-Bereich für die Netbeans Programmierung gibt, poste ich hier, ansonsten bitte verschieben :X 
 
Also ich bin an ein...</description>
			<content:encoded><![CDATA[<div>Hallo^^<br />
Da es keinen Support-Bereich für die Netbeans Programmierung gibt, poste ich hier, ansonsten bitte verschieben :X<br />
<br />
Also ich bin an ein Javachat drann und habe ein kleines Problem<br />
und zwar in netbeans . . Screen: <a href="http://i43.tinypic.com/zik1n9.png" target="_blank" rel="nofollow">http://i43.tinypic.com/zik1n9.png</a><br />
<br />
Und ja ich habe dies alles von dem Video hier: <a href="http://www.youtube.com/watch?v=ifKga7d6HYA" target="_blank" rel="nofollow">Knuddels Java Emulator installieren - YouTube</a><br />
<br />
Gemacht. aber ich komm jetzt leider nicht weiter und weiß auch nicht wo da der Fehler sein solte o.O..<br />
<br />
Bitte Helfen Danke ;D<br />
<br />
MfG</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>getsha</dc:creator>
			<guid isPermaLink="true">java-95/bananachat-commandparser-fehler-8880</guid>
		</item>
		<item>
			<title>KChannelList</title>
			<link>java-95/kchannellist-6735?goto=newpost</link>
			<pubDate>Wed, 08 Feb 2012 10:48:31 GMT</pubDate>
			<description>PHP: 
--------- 
package KCClient.UI.Components; 
 
import KCClient.UI.ImageLoader; 
import java.awt.*; 
import java.awt.event.MouseAdapter; 
import...</description>
			<content:encoded><![CDATA[<div><div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">package&nbsp;KCClient</span><span style="color: #007700">.</span><span style="color: #0000BB">UI</span><span style="color: #007700">.</span><span style="color: #0000BB">Components</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">import&nbsp;KCClient</span><span style="color: #007700">.</span><span style="color: #0000BB">UI</span><span style="color: #007700">.</span><span style="color: #0000BB">ImageLoader</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">awt</span><span style="color: #007700">.*;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">awt</span><span style="color: #007700">.</span><span style="color: #0000BB">event</span><span style="color: #007700">.</span><span style="color: #0000BB">MouseAdapter</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">awt</span><span style="color: #007700">.</span><span style="color: #0000BB">font</span><span style="color: #007700">.</span><span style="color: #0000BB">TextAttribute</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">util</span><span style="color: #007700">.</span><span style="color: #0000BB">HashMap</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">util</span><span style="color: #007700">.</span><span style="color: #0000BB">Map</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;javax</span><span style="color: #007700">.</span><span style="color: #0000BB">swing</span><span style="color: #007700">.*;<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*<br />&nbsp;*&nbsp;@author&nbsp;DeKaDeNz<br />&nbsp;*/<br /></span><span style="color: #007700">public&nbsp;class&nbsp;</span><span style="color: #0000BB">KChannelList&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">JList</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">KChannelList</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">super</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">addMouseMotionListener</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">KChannelList_MouseEvents</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">KChannelList</span><span style="color: #007700">(</span><span style="color: #0000BB">ListModel&nbsp;model</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">super</span><span style="color: #007700">(</span><span style="color: #0000BB">model</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">addMouseMotionListener</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">KChannelList_MouseEvents</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;hoverIndex&nbsp;</span><span style="color: #007700">=&nbsp;-</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;class&nbsp;</span><span style="color: #0000BB">KChannelList_MouseEvents&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">MouseAdapter<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@</span><span style="color: #0000BB">Override<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">void&nbsp;mouseMoved</span><span style="color: #007700">(</span><span style="color: #0000BB">java</span><span style="color: #007700">.</span><span style="color: #0000BB">awt</span><span style="color: #007700">.</span><span style="color: #0000BB">event</span><span style="color: #007700">.</span><span style="color: #0000BB">MouseEvent&nbsp;evt</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KChannelList&nbsp;</span><span style="color: #007700">list&nbsp;=&nbsp;(</span><span style="color: #0000BB">KChannelList</span><span style="color: #007700">)</span><span style="color: #0000BB">evt</span><span style="color: #007700">.</span><span style="color: #0000BB">getComponent</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;pos&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">evt</span><span style="color: #007700">.</span><span style="color: #0000BB">getY</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;itemI&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">pos</span><span style="color: #007700">/list.</span><span style="color: #0000BB">getFixedCellHeight</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">itemI</span><span style="color: #007700">!=list.</span><span style="color: #0000BB">hoverIndex</span><span style="color: #007700">)<br />&nbsp;&nbsp;&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;&nbsp;&nbsp;list.</span><span style="color: #0000BB">hoverIndex</span><span style="color: #007700">=</span><span style="color: #0000BB">itemI</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list.</span><span style="color: #0000BB">repaint</span><span style="color: #007700">();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@</span><span style="color: #0000BB">Override<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">void&nbsp;mouseExited</span><span style="color: #007700">(</span><span style="color: #0000BB">java</span><span style="color: #007700">.</span><span style="color: #0000BB">awt</span><span style="color: #007700">.</span><span style="color: #0000BB">event</span><span style="color: #007700">.</span><span style="color: #0000BB">MouseEvent&nbsp;evt</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KChannelList&nbsp;</span><span style="color: #007700">list&nbsp;=&nbsp;(</span><span style="color: #0000BB">KChannelList</span><span style="color: #007700">)</span><span style="color: #0000BB">evt</span><span style="color: #007700">.</span><span style="color: #0000BB">getComponent</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list.</span><span style="color: #0000BB">hoverIndex</span><span style="color: #007700">=-</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list.</span><span style="color: #0000BB">repaint</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;@</span><span style="color: #0000BB">Override<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">void&nbsp;paintComponent</span><span style="color: #007700">(</span><span style="color: #0000BB">Graphics&nbsp;g</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">drawBorder</span><span style="color: #007700">(</span><span style="color: #0000BB">g</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">drawBackground</span><span style="color: #007700">(</span><span style="color: #0000BB">g</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">drawItems</span><span style="color: #007700">(</span><span style="color: #0000BB">g</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Color&nbsp;borderColor&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Color</span><span style="color: #007700">.</span><span style="color: #0000BB">BLACK</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">Color&nbsp;getBorderColor</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">borderColor</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">void&nbsp;setBorderColor</span><span style="color: #007700">(</span><span style="color: #0000BB">Color&nbsp;c</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">borderColor&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">c</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">void&nbsp;drawBorder</span><span style="color: #007700">(</span><span style="color: #0000BB">Graphics&nbsp;g</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setColor</span><span style="color: #007700">(</span><span style="color: #0000BB">getBorderColor</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">drawRect</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">WIDTH</span><span style="color: #007700">-</span><span style="color: #0000BB">1</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">HEIGHT</span><span style="color: #007700">-</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">void&nbsp;drawBackground</span><span style="color: #007700">(</span><span style="color: #0000BB">Graphics&nbsp;g</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setColor</span><span style="color: #007700">(</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getBackground</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">fillRect</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getWidth</span><span style="color: #007700">(),&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getHeight</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">void&nbsp;drawItemAsString</span><span style="color: #007700">(</span><span style="color: #0000BB">Graphics&nbsp;g</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">String&nbsp;s</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;i</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;y</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">FontMetrics&nbsp;met&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">getFontMetrics</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;h&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">25</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;y2</span><span style="color: #007700">=</span><span style="color: #0000BB">y</span><span style="color: #007700">+(</span><span style="color: #0000BB">h</span><span style="color: #007700">-</span><span style="color: #0000BB">met</span><span style="color: #007700">.</span><span style="color: #0000BB">getHeight</span><span style="color: #007700">())/</span><span style="color: #0000BB">2</span><span style="color: #007700">+</span><span style="color: #0000BB">met</span><span style="color: #007700">.</span><span style="color: #0000BB">getAscent</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//drawfieldback<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if(</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getSelectedIndex</span><span style="color: #007700">()==</span><span style="color: #0000BB">i</span><span style="color: #007700">)<br />&nbsp;&nbsp;&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;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setColor</span><span style="color: #007700">(</span><span style="color: #0000BB">Color</span><span style="color: #007700">.</span><span style="color: #0000BB">BLUE</span><span style="color: #007700">.</span><span style="color: #0000BB">darker</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">fillRect</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getWidth</span><span style="color: #007700">(),</span><span style="color: #0000BB">y</span><span style="color: #007700">+</span><span style="color: #0000BB">h</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setColor</span><span style="color: #007700">(</span><span style="color: #0000BB">Color</span><span style="color: #007700">.</span><span style="color: #0000BB">WHITE</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&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;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setColor</span><span style="color: #007700">(</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getBackground</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">fillRect</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getWidth</span><span style="color: #007700">(),</span><span style="color: #0000BB">y</span><span style="color: #007700">+</span><span style="color: #0000BB">h</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setColor</span><span style="color: #007700">(</span><span style="color: #0000BB">Color</span><span style="color: #007700">.</span><span style="color: #0000BB">BLACK</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">String&nbsp;item&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">s</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;w&nbsp;</span><span style="color: #007700">=&nbsp;(int)</span><span style="color: #0000BB">met</span><span style="color: #007700">.</span><span style="color: #0000BB">getStringBounds</span><span style="color: #007700">(</span><span style="color: #0000BB">s</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">).</span><span style="color: #0000BB">getWidth</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">w</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">maxx</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">maxx&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">w</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">drawString</span><span style="color: #007700">(</span><span style="color: #0000BB">item</span><span style="color: #007700">,</span><span style="color: #0000BB">3</span><span style="color: #007700">,</span><span style="color: #0000BB">y2</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Map</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">TextAttribute</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Integer</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">fontAttributes&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">HashMap</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">TextAttribute</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Integer</span><span style="color: #007700">&gt;();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;maxx&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;</span><span style="color: #0000BB">void&nbsp;drawItems</span><span style="color: #007700">(</span><span style="color: #0000BB">Graphics&nbsp;g</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">setFixedCellHeight</span><span style="color: #007700">(</span><span style="color: #0000BB">19</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ListModel&nbsp;model&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getModel</span><span style="color: #007700">();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(</span><span style="color: #0000BB">int&nbsp;i&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">model</span><span style="color: #007700">.</span><span style="color: #0000BB">getSize</span><span style="color: #007700">();</span><span style="color: #0000BB">i</span><span style="color: #007700">++)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Object&nbsp;c&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">model</span><span style="color: #007700">.</span><span style="color: #0000BB">getElementAt</span><span style="color: #007700">(</span><span style="color: #0000BB">i</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">String&nbsp;s&nbsp;</span><span style="color: #007700">=&nbsp;(String)</span><span style="color: #0000BB">c</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">drawItemAsString</span><span style="color: #007700">(</span><span style="color: #0000BB">g</span><span style="color: #007700">,</span><span style="color: #0000BB">s</span><span style="color: #007700">,</span><span style="color: #0000BB">i</span><span style="color: #007700">,</span><span style="color: #0000BB">y</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">y</span><span style="color: #007700">+=</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getFixedCellHeight</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch(</span><span style="color: #0000BB">Exception&nbsp;s</span><span style="color: #007700">)<br />&nbsp;&nbsp;&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;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">KChannelList_Item&nbsp;item&nbsp;</span><span style="color: #007700">=&nbsp;(</span><span style="color: #0000BB">KChannelList_Item</span><span style="color: #007700">)</span><span style="color: #0000BB">c</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Font&nbsp;f&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">getFont</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;fstyle</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">item</span><span style="color: #007700">.</span><span style="color: #0000BB">bold</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">fstyle&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">fstyle&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">Font</span><span style="color: #007700">.</span><span style="color: #0000BB">BOLD</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">item</span><span style="color: #007700">.</span><span style="color: #0000BB">italic</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">fstyle&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">fstyle&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">Font</span><span style="color: #007700">.</span><span style="color: #0000BB">ITALIC</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">hoverIndex</span><span style="color: #007700">==</span><span style="color: #0000BB">i</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">fontAttributes</span><span style="color: #007700">.</span><span style="color: #0000BB">put</span><span style="color: #007700">(</span><span style="color: #0000BB">TextAttribute</span><span style="color: #007700">.</span><span style="color: #0000BB">UNDERLINE</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">TextAttribute</span><span style="color: #007700">.</span><span style="color: #0000BB">UNDERLINE_ON</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">fontAttributes</span><span style="color: #007700">.</span><span style="color: #0000BB">remove</span><span style="color: #007700">(</span><span style="color: #0000BB">TextAttribute</span><span style="color: #007700">.</span><span style="color: #0000BB">UNDERLINE</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Font&nbsp;newf&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Font</span><span style="color: #007700">(</span><span style="color: #0000BB">f</span><span style="color: #007700">.</span><span style="color: #0000BB">getFontName</span><span style="color: #007700">(),&nbsp;</span><span style="color: #0000BB">f</span><span style="color: #007700">.</span><span style="color: #0000BB">getStyle</span><span style="color: #007700">()&nbsp;|&nbsp;</span><span style="color: #0000BB">fstyle</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">f</span><span style="color: #007700">.</span><span style="color: #0000BB">getSize</span><span style="color: #007700">()).</span><span style="color: #0000BB">deriveFont</span><span style="color: #007700">(</span><span style="color: #0000BB">fontAttributes</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setFont</span><span style="color: #007700">(</span><span style="color: #0000BB">newf</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">FontMetrics&nbsp;met&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">getFontMetrics</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;h&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getFixedCellHeight</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;y2</span><span style="color: #007700">=</span><span style="color: #0000BB">y</span><span style="color: #007700">+(</span><span style="color: #0000BB">h</span><span style="color: #007700">-</span><span style="color: #0000BB">met</span><span style="color: #007700">.</span><span style="color: #0000BB">getHeight</span><span style="color: #007700">())/</span><span style="color: #0000BB">2</span><span style="color: #007700">+</span><span style="color: #0000BB">met</span><span style="color: #007700">.</span><span style="color: #0000BB">getAscent</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//drawfieldback<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if(</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getSelectedIndex</span><span style="color: #007700">()==</span><span style="color: #0000BB">i</span><span style="color: #007700">)<br />&nbsp;&nbsp;&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;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setColor</span><span style="color: #007700">(</span><span style="color: #0000BB">Color</span><span style="color: #007700">.</span><span style="color: #0000BB">BLUE</span><span style="color: #007700">.</span><span style="color: #0000BB">darker</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">fillRect</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getWidth</span><span style="color: #007700">(),</span><span style="color: #0000BB">y</span><span style="color: #007700">+</span><span style="color: #0000BB">h</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setColor</span><span style="color: #007700">(</span><span style="color: #0000BB">Color</span><span style="color: #007700">.</span><span style="color: #0000BB">WHITE</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&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;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setColor</span><span style="color: #007700">(</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getBackground</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">fillRect</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">getWidth</span><span style="color: #007700">(),</span><span style="color: #0000BB">y</span><span style="color: #007700">+</span><span style="color: #0000BB">h</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setColor</span><span style="color: #007700">(</span><span style="color: #0000BB">item</span><span style="color: #007700">.</span><span style="color: #0000BB">color</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">String&nbsp;s&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">item</span><span style="color: #007700">.</span><span style="color: #0000BB">toString</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">drawString</span><span style="color: #007700">(</span><span style="color: #0000BB">s</span><span style="color: #007700">,</span><span style="color: #0000BB">3</span><span style="color: #007700">,</span><span style="color: #0000BB">y2</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;w&nbsp;</span><span style="color: #007700">=&nbsp;(int)</span><span style="color: #0000BB">met</span><span style="color: #007700">.</span><span style="color: #0000BB">getStringBounds</span><span style="color: #007700">(</span><span style="color: #0000BB">s</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">).</span><span style="color: #0000BB">getWidth</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">w</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">maxx</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">maxx&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">w</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//imgdrawing<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if(!</span><span style="color: #0000BB">item</span><span style="color: #007700">.</span><span style="color: #0000BB">imgUrl</span><span style="color: #007700">.</span><span style="color: #0000BB">isEmpty</span><span style="color: #007700">())<br />&nbsp;&nbsp;&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;&nbsp;&nbsp;</span><span style="color: #0000BB">Image&nbsp;img&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">ImageLoader</span><span style="color: #007700">.</span><span style="color: #0000BB">getImage</span><span style="color: #007700">(</span><span style="color: #0000BB">item</span><span style="color: #007700">.</span><span style="color: #0000BB">imgUrl</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">img</span><span style="color: #007700">!=</span><span style="color: #0000BB">null</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;ih&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">img</span><span style="color: #007700">.</span><span style="color: #0000BB">getHeight</span><span style="color: #007700">(</span><span style="color: #0000BB">this</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;iw&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">img</span><span style="color: #007700">.</span><span style="color: #0000BB">getWidth</span><span style="color: #007700">(</span><span style="color: #0000BB">this</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">int&nbsp;iy</span><span style="color: #007700">=</span><span style="color: #0000BB">y</span><span style="color: #007700">+(</span><span style="color: #0000BB">h</span><span style="color: #007700">-</span><span style="color: #0000BB">iw</span><span style="color: #007700">)/</span><span style="color: #0000BB">2</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">drawImage</span><span style="color: #007700">(</span><span style="color: #0000BB">img</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">w</span><span style="color: #007700">+</span><span style="color: #0000BB">5</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iy</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">maxx</span><span style="color: #007700">+=</span><span style="color: #0000BB">5</span><span style="color: #007700">+</span><span style="color: #0000BB">iw</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">y</span><span style="color: #007700">+=</span><span style="color: #0000BB">h</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g</span><span style="color: #007700">.</span><span style="color: #0000BB">setFont</span><span style="color: #007700">(</span><span style="color: #0000BB">f</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">setFixedCellWidth</span><span style="color: #007700">(</span><span style="color: #0000BB">maxx</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br /><br /><br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div><div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">package&nbsp;KCClient</span><span style="color: #007700">.</span><span style="color: #0000BB">UI</span><span style="color: #007700">.</span><span style="color: #0000BB">Components</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">awt</span><span style="color: #007700">.</span><span style="color: #0000BB">Color</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*<br />&nbsp;*&nbsp;@author&nbsp;DeKaDeNz<br />&nbsp;*/<br />&nbsp;</span><span style="color: #007700">public&nbsp;class&nbsp;</span><span style="color: #0000BB">KChannelList_Item&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">int&nbsp;user&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">String&nbsp;value</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">boolean&nbsp;bold</span><span style="color: #007700">=</span><span style="color: #0000BB">false</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">boolean&nbsp;italic</span><span style="color: #007700">=</span><span style="color: #0000BB">false</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">String&nbsp;imgUrl</span><span style="color: #007700">=</span><span style="color: #DD0000">""</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">Color&nbsp;color&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Color</span><span style="color: #007700">.</span><span style="color: #0000BB">BLACK</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">KChannelList_Item</span><span style="color: #007700">(</span><span style="color: #0000BB">String&nbsp;value</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">value&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">KChannelList_Item</span><span style="color: #007700">(</span><span style="color: #0000BB">String&nbsp;value</span><span style="color: #007700">,</span><span style="color: #0000BB">int&nbsp;user</span><span style="color: #007700">,</span><span style="color: #0000BB">boolean&nbsp;bold</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">boolean&nbsp;italic</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Color&nbsp;c</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">value&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">bold&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">bold</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">italic&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">italic</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">color&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">c</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">user&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">user</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">KChannelList_Item</span><span style="color: #007700">(</span><span style="color: #0000BB">String&nbsp;value</span><span style="color: #007700">,</span><span style="color: #0000BB">int&nbsp;user</span><span style="color: #007700">,&nbsp;&nbsp;</span><span style="color: #0000BB">boolean&nbsp;bold</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">boolean&nbsp;italic</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">value&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">bold&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">bold</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">italic&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">italic</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">user&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">KChannelList_Item</span><span style="color: #007700">(</span><span style="color: #0000BB">String&nbsp;value</span><span style="color: #007700">,</span><span style="color: #0000BB">int&nbsp;user</span><span style="color: #007700">,&nbsp;&nbsp;</span><span style="color: #0000BB">boolean&nbsp;bold</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">boolean&nbsp;italic</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Color&nbsp;c</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">String&nbsp;imgUrl</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">value&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">bold&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">bold</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">italic&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">italic</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">color&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">c</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">imgUrl&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">imgUrl</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">this</span><span style="color: #007700">.</span><span style="color: #0000BB">user&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">user</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@</span><span style="color: #0000BB">Override<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">String&nbsp;toString</span><span style="color: #007700">()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">value&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #DD0000">"&nbsp;("</span><span style="color: #007700">+</span><span style="color: #0000BB">user</span><span style="color: #007700">+</span><span style="color: #DD0000">")"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div><br />
<br />
Nicht gerade das schönste vom schönsten, abes es geht :D<br />
<br />
<br />
Example:<br />
<img src="http://img825.imageshack.us/img825/8995/kchannellist.png" border="0" alt="" /><br />
<br />
<br />
//EDIT:<br />
Update, Anzahl der User im Channel mit eingefügt im Source<br />
Ausserdem neuer Konstruktor, danke Golem</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>DeKaDeNz</dc:creator>
			<guid isPermaLink="true">java-95/kchannellist-6735</guid>
		</item>
		<item>
			<title>ImageLoader</title>
			<link>java-95/imageloader-6734?goto=newpost</link>
			<pubDate>Wed, 08 Feb 2012 10:26:48 GMT</pubDate>
			<description>Diese Klasse erlaubt es Bilder von einer URL zu laden und zu cachen. 
 
PHP: 
--------- 
package KCClient.UI; 
 
import java.awt.Image; 
import...</description>
			<content:encoded><![CDATA[<div>Diese Klasse erlaubt es Bilder von einer URL zu laden und zu cachen.<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">package&nbsp;KCClient</span><span style="color: #007700">.</span><span style="color: #0000BB">UI</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">awt</span><span style="color: #007700">.</span><span style="color: #0000BB">Image</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">net</span><span style="color: #007700">.</span><span style="color: #0000BB">URL</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;java</span><span style="color: #007700">.</span><span style="color: #0000BB">util</span><span style="color: #007700">.</span><span style="color: #0000BB">HashMap</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">import&nbsp;javax</span><span style="color: #007700">.</span><span style="color: #0000BB">imageio</span><span style="color: #007700">.</span><span style="color: #0000BB">ImageIO</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*<br />&nbsp;*&nbsp;@author&nbsp;DeKaDeNz<br />&nbsp;*/<br /></span><span style="color: #007700">public&nbsp;class&nbsp;</span><span style="color: #0000BB">ImageLoader&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;</span><span style="color: #0000BB">HashMap</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">String</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Image</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">images&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">HashMap</span><span style="color: #007700">&lt;&gt;();<br />&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;</span><span style="color: #0000BB">String&nbsp;codeBase&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"http://chat.knuddels.de/"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;</span><span style="color: #0000BB">void&nbsp;setCodeBase</span><span style="color: #007700">(</span><span style="color: #0000BB">String&nbsp;base</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">codeBase&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">base</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;private&nbsp;class&nbsp;</span><span style="color: #0000BB">ImageLoaderThread&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">Thread<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">URL&nbsp;url</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">String&nbsp;relative</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">ImageLoaderThread</span><span style="color: #007700">(</span><span style="color: #0000BB">URL&nbsp;uri</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">String&nbsp;r</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">url&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">uri</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">relative&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">r</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">void&nbsp;run</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">loadImage</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">void&nbsp;loadImage</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Image&nbsp;img&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">ImageIO</span><span style="color: #007700">.</span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">url</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ImageLoader</span><span style="color: #007700">.</span><span style="color: #0000BB">setImage</span><span style="color: #007700">(</span><span style="color: #0000BB">img</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">relative</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch(</span><span style="color: #0000BB">Exception&nbsp;ex</span><span style="color: #007700">)<br />&nbsp;&nbsp;&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;&nbsp;&nbsp;</span><span style="color: #0000BB">ex</span><span style="color: #007700">.</span><span style="color: #0000BB">printStackTrace</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;</span><span style="color: #0000BB">void&nbsp;setImage</span><span style="color: #007700">(</span><span style="color: #0000BB">Image&nbsp;img</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">String&nbsp;relative</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">images</span><span style="color: #007700">.</span><span style="color: #0000BB">remove</span><span style="color: #007700">(</span><span style="color: #0000BB">relative</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">images</span><span style="color: #007700">.</span><span style="color: #0000BB">put</span><span style="color: #007700">(</span><span style="color: #0000BB">relative</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">img</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;</span><span style="color: #0000BB">Image&nbsp;getImage</span><span style="color: #007700">(</span><span style="color: #0000BB">String&nbsp;relativeUrl</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">images</span><span style="color: #007700">.</span><span style="color: #0000BB">containsKey</span><span style="color: #007700">(</span><span style="color: #0000BB">relativeUrl</span><span style="color: #007700">))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">images</span><span style="color: #007700">.</span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #0000BB">relativeUrl</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">URL&nbsp;url&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">URL</span><span style="color: #007700">(</span><span style="color: #0000BB">codeBase</span><span style="color: #007700">+</span><span style="color: #0000BB">relativeUrl</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">System</span><span style="color: #007700">.</span><span style="color: #0000BB">out</span><span style="color: #007700">.</span><span style="color: #0000BB">println</span><span style="color: #007700">(</span><span style="color: #0000BB">url</span><span style="color: #007700">.</span><span style="color: #0000BB">toString</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">images</span><span style="color: #007700">.</span><span style="color: #0000BB">put</span><span style="color: #007700">(</span><span style="color: #0000BB">relativeUrl</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">ImageLoaderThread</span><span style="color: #007700">(</span><span style="color: #0000BB">url</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">relativeUrl</span><span style="color: #007700">).</span><span style="color: #0000BB">start</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch(</span><span style="color: #0000BB">Exception&nbsp;e</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">e</span><span style="color: #007700">.</span><span style="color: #0000BB">printStackTrace</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;</span><span style="color: #0000BB">void&nbsp;clearCache</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">images</span><span style="color: #007700">.</span><span style="color: #0000BB">clear</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div><br />
<br />
Wer es benötigt hier noch eine Klasse um Bilder zu preloaden:<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">public&nbsp;class&nbsp;</span><span style="color: #0000BB">PreloadImages&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;</span><span style="color: #0000BB">String&nbsp;preloadImagesString&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"/pics/icon_fullChannel.gif"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;static&nbsp;</span><span style="color: #0000BB">void&nbsp;preloadImages</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">String</span><span style="color: #007700">&#91;&#93;&nbsp;</span><span style="color: #0000BB">preloadImages&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">preloadImagesString</span><span style="color: #007700">.</span><span style="color: #0000BB">split</span><span style="color: #007700">(</span><span style="color: #DD0000">";"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(</span><span style="color: #0000BB">String&nbsp;imgrel&nbsp;</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">preloadImages</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">imgrel</span><span style="color: #007700">.</span><span style="color: #0000BB">isEmpty</span><span style="color: #007700">())<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while(</span><span style="color: #0000BB">ImageLoader</span><span style="color: #007700">.</span><span style="color: #0000BB">getImage</span><span style="color: #007700">(</span><span style="color: #0000BB">imgrel</span><span style="color: #007700">)==</span><span style="color: #0000BB">null</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&nbsp;{&nbsp;</span><span style="color: #0000BB">Thread</span><span style="color: #007700">.</span><span style="color: #0000BB">sleep</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">);&nbsp;}&nbsp;catch&nbsp;(</span><span style="color: #0000BB">InterruptedException&nbsp;ex</span><span style="color: #007700">)&nbsp;{&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div></div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>DeKaDeNz</dc:creator>
			<guid isPermaLink="true">java-95/imageloader-6734</guid>
		</item>
		<item>
			<title><![CDATA[[Frage] Java Umgebungsvariablen setzen?]]></title>
			<link>java-95/frage-java-umgebungsvariablen-setzen-6154?goto=newpost</link>
			<pubDate>Wed, 01 Feb 2012 09:39:24 GMT</pubDate>
			<description>Guten Morgen, 
ich habe eben paar Tutorials in Google gesehen, 
habe es auch nachgemacht jedoch geht es noch immer nicht? 
Kann mir mal bitte jemand...</description>
			<content:encoded><![CDATA[<div>Guten Morgen,<br />
ich habe eben paar Tutorials in Google gesehen,<br />
habe es auch nachgemacht jedoch geht es noch immer nicht?<br />
Kann mir mal bitte jemand per TV diese Java Variablen setzen?<br />
Habe Windows7.<br />
<br />
Danke. (:</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Invicible</dc:creator>
			<guid isPermaLink="true">java-95/frage-java-umgebungsvariablen-setzen-6154</guid>
		</item>
		<item>
			<title>Problem mit Java</title>
			<link>java-95/problem-mit-java-30775?goto=newpost</link>
			<pubDate>Sun, 18 Dec 2011 14:36:55 GMT</pubDate>
			<description>Hallo zusammen, 
haben letzt in der Schule mit Java angefangen. Hab bei einer Hausaufgabe ein Problem: 
	public static boolean istPositiv() 
	{...</description>
			<content:encoded><![CDATA[<div>Hallo zusammen,<br />
haben letzt in der Schule mit Java angefangen. Hab bei einer Hausaufgabe ein Problem:<br />
	public static boolean istPositiv()<br />
	{ boolean ausgabe;<br />
	int x;<br />
	x=3;<br />
	if(x&gt;0)<br />
	{ausgabe=true;}<br />
	else<br />
	{ausgabe=false;}<br />
	return ausgabe;<br />
}<br />
<br />
Mein Problem ist: Warum wird der Wahrheitswert von ausgabe nicht ausgegeben?</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>wod</dc:creator>
			<guid isPermaLink="true">java-95/problem-mit-java-30775</guid>
		</item>
		<item>
			<title><![CDATA[[Fehler-Code]Zahlentripel]]></title>
			<link>java-95/fehler-code-zahlentripel-2481?goto=newpost</link>
			<pubDate>Fri, 09 Dec 2011 07:53:18 GMT</pubDate>
			<description>Hi, 
 
sitze gerade in der Schule und verzweifle gerade an der Suche meines Fehlers in meinem Programm. Jeder von euch kennt den Satz des Pythagoras...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
sitze gerade in der Schule und verzweifle gerade an der Suche meines Fehlers in meinem Programm. Jeder von euch kennt den Satz des Pythagoras und dies sollen wir programmieren. Zum Beispiel 3² + 4² = 5². Wenn ich als oberen Grenzwert zum Beispiel 25 eingebe erscheint bei mir in der Ausgabe:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Zitat:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			Programm zur Berechnung des pythagoräischen Zahlentriple.<br />
Geben Sie eine obere Grenze ein: 25<br />
28	27	26
			
		<hr />
	</div>
</div>Mein Code:<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b>:<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">import java.io.BufferedReader;<br />
import java.io.IOException;<br />
import java.io.InputStreamReader;<br />
<br />
<br />
public class Pytho <br />
{<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static void main(String[] args) throws IOException <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Programm zur Berechnung des pythagoräischen Zahlentriple.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String str;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int a, b, c, n;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BufferedReader in = new BufferedReader(new InputStreamReader(System.in));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(&quot;Geben Sie eine obere Grenze ein: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; str = in.readLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n = Integer.parseInt(str);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (c=2; c&lt;=n;c++);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (b=1;b&lt;=c; b++);<br />
&nbsp; &nbsp; &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; &nbsp; &nbsp; for(a=1; a&lt;=b; a++);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(a*a+b*b==c*c);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(a+&quot;\t&quot;+b+&quot;\t&quot;+c);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}</code><hr />
</div>
</div>
</div>
</div><br />
<br />
MfG</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Daxter</dc:creator>
			<guid isPermaLink="true">java-95/fehler-code-zahlentripel-2481</guid>
		</item>
		<item>
			<title>403 Error beim Auslesen von Quellcode</title>
			<link>java-95/403-error-beim-auslesen-quellcode-1923?goto=newpost</link>
			<pubDate>Sun, 04 Dec 2011 19:11:52 GMT</pubDate>
			<description><![CDATA[Hi, 
 
ich hab 'n Problem. Will mir das Wetter von Google auslesen lassen für meinen Emulator (James Wetter ~STADT~), aber der Server wirft mir 'nen...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
ich hab 'n Problem. Will mir das Wetter von Google auslesen lassen für meinen Emulator (James Wetter ~STADT~), aber der Server wirft mir 'nen 403-Error zurück. Kann man das irgendwie umgehen?<br />
Fehler in der Konsole:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Exception in thread &quot;main&quot; java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.google.de/search?q=wetter&amp;sa=X&amp;oi=iweather&amp;ct=cl-d&amp;near=Berlin<br />
&nbsp; &nbsp; &nbsp; &nbsp; at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.net.URL.openStream(Unknown Source)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at Quellcode.main(Quellcode.java:9)</code><hr />
</div>Mein Code:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">import java.net.URL;<br />
import java.util.Scanner;<br />
&nbsp;<br />
public class Quellcode {<br />
&nbsp; &nbsp; public static void main(String[] args) throws Exception {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String stadt = &quot;Berlin&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String url = String.format(&quot;http://www.google.de/search?q=wetter&amp;sa=X&amp;oi=iweather&amp;ct=cl-d&amp;near=%s&quot;, stadt);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Scanner scanner = new Scanner(new URL(url).openStream());<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StringBuilder xd = new StringBuilder();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; while(scanner.hasNextLine()) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xd.append(scanner.nextLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(xd.toString());<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; scanner.close();<br />
&nbsp; &nbsp; }<br />
&nbsp;<br />
}</code><hr />
</div>MfG</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="true">java-95/403-error-beim-auslesen-quellcode-1923</guid>
		</item>
		<item>
			<title><![CDATA[Java Applet & Cookies]]></title>
			<link>java-95/java-applet-cookies-1879?goto=newpost</link>
			<pubDate>Sun, 04 Dec 2011 16:15:23 GMT</pubDate>
			<description>Hallo ich würde gerne ein Cookie aus eine Java Applet erstellen bzw. lesen 
 
Beim ausführen des Applet soll überprüft werden ob ein Cookie existiert...</description>
			<content:encoded><![CDATA[<div>Hallo ich würde gerne ein Cookie aus eine Java Applet erstellen bzw. lesen<br />
<br />
Beim ausführen des Applet soll überprüft werden ob ein Cookie existiert und wenn ja soll es ausgelesen werden und die Werte in eine Variabel gespeichert werden.<br />
<br />
Kann mir jemand vielleicht einen Tipp geben oder einen Ansatz? <br />
<br />
Danke schon mal :D</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>uncopyable</dc:creator>
			<guid isPermaLink="true">java-95/java-applet-cookies-1879</guid>
		</item>
		<item>
			<title><![CDATA[Fehler in "char[] a = ('h','a','l','l','o');"]]></title>
			<link>java-95/fehler-in-char-a--h-a-l-l-o-1855?goto=newpost</link>
			<pubDate>Sun, 04 Dec 2011 12:08:37 GMT</pubDate>
			<description>Hallo,  
habe hier einen Fehler, weiß aber nicht wirklich was daran falsch sein soll. 
 
Bild: http://img43.imageshack.us/img43/2998/fehlerc.png ...</description>
			<content:encoded><![CDATA[<div>Hallo, <br />
habe hier einen Fehler, weiß aber nicht wirklich was daran falsch sein soll.<br />
<br />
<a href="http://imageshack.us/photo/my-images/43/fehlerc.png/" target="_blank" rel="nofollow"><img src="http://img43.imageshack.us/img43/2998/fehlerc.png" border="0" alt="" /></a></div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Patrick Bateman</dc:creator>
			<guid isPermaLink="true">java-95/fehler-in-char-a--h-a-l-l-o-1855</guid>
		</item>
		<item>
			<title>Java Umgebungsvariablen setzen</title>
			<link>java-95/java-umgebungsvariablen-setzen-29574?goto=newpost</link>
			<pubDate>Sun, 27 Nov 2011 21:17:49 GMT</pubDate>
			<description>Hallu :) 
 
Ein kurze Frage. 
Wie setze ich die Umgebungsvariablen.? 
 
Mir würde es mal per Tv gemacht von einem User,habe jedoch meinen Pc...</description>
			<content:encoded><![CDATA[<div>Hallu :)<br />
<br />
Ein kurze Frage.<br />
Wie setze ich die Umgebungsvariablen.?<br />
<br />
Mir würde es mal per Tv gemacht von einem User,habe jedoch meinen Pc formatiert.<br />
Soweit ich weiß kann ich sie auch einfach downloaden.<br />
<br />
Mfg<br />
Pyro.#</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>Pyro.#</dc:creator>
			<guid isPermaLink="true">java-95/java-umgebungsvariablen-setzen-29574</guid>
		</item>
		<item>
			<title>Ordner mit .class Dateien zu einer .jar</title>
			<link>java-95/ordner-mit-class-dateien-zu-einer-jar-721?goto=newpost</link>
			<pubDate>Tue, 22 Nov 2011 10:36:23 GMT</pubDate>
			<description>Guten Tag, 
 
Ich bin noch regelrecht neu in den Sachen was Java betrifft und setze mich momentan damit auseinander bzw. versuche es. 
Ich hab hier...</description>
			<content:encoded><![CDATA[<div>Guten Tag,<br />
<br />
Ich bin noch regelrecht neu in den Sachen was Java betrifft und setze mich momentan damit auseinander bzw. versuche es.<br />
Ich hab hier gerad einen Ordner mit .class Dateien. Diese Dateien sind bereit wie ein Bot zu funktionieren. Jetzt möchte ich aber das der Ordner in dem die .class Dateien liegen(sind nicht nur .class Dateien) z.B. Wordmix.jar heisst und das die .jar ausführbar ist. <br />
Wäre nett wenn ihr mir da helfen könntet.<br />
&amp; Nein es ist kein Wordmixbot das war jediglich nur ein Beispiel für euch.<br />
<br />
- DreisT</div>

]]></content:encoded>
			<category domain="java-95">Java</category>
			<dc:creator>DreisT</dc:creator>
			<guid isPermaLink="true">java-95/ordner-mit-class-dateien-zu-einer-jar-721</guid>
		</item>
	</channel>
</rss>
