d2jsp
Log InRegister
d2jsp Forums > Off-Topic > International > Deutsch > » Der Boulder & Kletter Thread «
Prev1126127128129130179Next
Add Reply New Topic New Poll
Member
Posts: 27,129
Joined: Aug 31 2007
Gold: 0.95
Warn: 60%
Sep 7 2021 01:16pm
Regeln:
KEIN SPAM
KEINE STOFF DISKUSSIONEN
KEINE BBler PICs
Member
Posts: 22,287
Joined: Mar 1 2013
Gold: 3,842.04
Sep 7 2021 02:09pm
rune pls
Member
Posts: 40,431
Joined: Dec 3 2010
Gold: 152,320.00
Sep 7 2021 02:33pm
Quote (Prophets @ 7 Sep 2021 22:09)
^fernsehen123 rune pls


Wir geben dem user Prophets die Lem-Rune :lol: gz^^
bestimmt neidisch...

hier btw mein skript, falls du was zu lachen haben willst

Code
public class Runen {

@SneakyThrows
public static void main(String[] args) {

Properties properties = new Properties();
BufferedInputStream stream = new BufferedInputStream(new FileInputStream("src/main/java/runen.properties"));
properties.load(stream);
stream.close();

String user = "Prophets";

List<String> runenList = new ArrayList<>(properties.stringPropertyNames());

boolean entschieden = false;

while (!entschieden) {
int randomNum = new Random().nextInt(runenList.size());

String rune = runenList.get(randomNum);

if (properties.getProperty(rune).isEmpty()) {
entschieden = true;
properties.setProperty(rune, user);
System.out.println("Wir geben dem user " + user + " die [B]" + rune + "[/B]");
} else {
System.out.println("nochmal wuerfeln...");
}
}


try (OutputStream output = new FileOutputStream("src/main/java/runen.properties")) {

properties.store(output, null);

} catch (IOException io) {
io.printStackTrace();
}
}
}
Member
Posts: 27,129
Joined: Aug 31 2007
Gold: 0.95
Warn: 60%
Sep 7 2021 11:27pm
Bin gerade aufgewacht
Member
Posts: 91,602
Joined: Apr 18 2007
Gold: 33,333.33
Sep 8 2021 12:17am
Quote (fernsehen123 @ Sep 7 2021 10:33pm)
Wir geben dem user Prophets die Lem-Rune :lol: gz^^
^akphilo bestimmt neidisch...

hier btw mein skript, falls du was zu lachen haben willst

Code
public class Runen {

@SneakyThrows
public static void main(String[] args) {

Properties properties = new Properties();
BufferedInputStream stream = new BufferedInputStream(new FileInputStream("src/main/java/runen.properties"));
properties.load(stream);
stream.close();

String user = "Prophets";

List<String> runenList = new ArrayList<>(properties.stringPropertyNames());

boolean entschieden = false;

while (!entschieden) {
int randomNum = new Random().nextInt(runenList.size());

String rune = runenList.get(randomNum);

if (properties.getProperty(rune).isEmpty()) {
entschieden = true;
properties.setProperty(rune, user);
System.out.println("Wir geben dem user " + user + " die [B]" + rune + "[/B]");
} else {
System.out.println("nochmal wuerfeln...");
}
}


try (OutputStream output = new FileOutputStream("src/main/java/runen.properties")) {

properties.store(output, null);

} catch (IOException io) {
io.printStackTrace();
}
}
}


dachte jetzt kommt wenn akphilo el :C
Member
Posts: 16,315
Joined: Dec 13 2008
Gold: 1,004.97
Warn: 10%
Sep 8 2021 01:46am
Bin arbeiten
Member
Posts: 22,287
Joined: Mar 1 2013
Gold: 3,842.04
Sep 8 2021 03:53am
Quote (fernsehen123 @ 7 Sep 2021 22:33)
Wir geben dem user Prophets die Lem-Rune :lol: gz^^
^akphilo bestimmt neidisch...

hier btw mein skript, falls du was zu lachen haben willst

Code
public class Runen {

@SneakyThrows
public static void main(String[] args) {

Properties properties = new Properties();
BufferedInputStream stream = new BufferedInputStream(new FileInputStream("src/main/java/runen.properties"));
properties.load(stream);
stream.close();

String user = "Prophets";

List<String> runenList = new ArrayList<>(properties.stringPropertyNames());

boolean entschieden = false;

while (!entschieden) {
int randomNum = new Random().nextInt(runenList.size());

String rune = runenList.get(randomNum);

if (properties.getProperty(rune).isEmpty()) {
entschieden = true;
properties.setProperty(rune, user);
System.out.println("Wir geben dem user " + user + " die [B]" + rune + "[/B]");
} else {
System.out.println("nochmal wuerfeln...");
}
}


try (OutputStream output = new FileOutputStream("src/main/java/runen.properties")) {

properties.store(output, null);

} catch (IOException io) {
io.printStackTrace();
}
}
}


ty, sicher mad af das er sie nicht hat aber gleichzeitig stolz af das ich sie bekommen habe
Member
Posts: 94,063
Joined: Nov 29 2008
Gold: 12,308.00
Warn: 10%
Sep 8 2021 03:56am
bin atmen
Member
Posts: 91,602
Joined: Apr 18 2007
Gold: 33,333.33
Sep 8 2021 04:46am
Quote (Prophets @ Sep 8 2021 11:53am)
ty, ^akphilo sicher mad af das er sie nicht hat aber gleichzeitig stolz af das ich sie bekommen habe


ein wenig ja ^^ arsch
Member
Posts: 22,287
Joined: Mar 1 2013
Gold: 3,842.04
Sep 8 2021 05:02am
Quote (akphilo @ 8 Sep 2021 12:46)
ein wenig ja ^^ arsch


alternativ können wir aber auch einfach teilen




ich nehm die untere hälfte :wub:

This post was edited by Prophets on Sep 8 2021 05:10am
Go Back To Deutsch Topic List
Prev1126127128129130179Next
Add Reply New Topic New Poll