• Apfeltalk ändert einen Teil seiner Allgemeinen Geschäftsbedingungen (AGB), das Löschen von Useraccounts betreffend.
    Näheres könnt Ihr hier nachlesen: AGB-Änderung
  • Na, habt Ihr genügend in Stoffen geschwelgt? Dann könntet Ihr Euch jetzt die zahlreichen Einsendungen dieses Monats anschauen und entscheiden, welches Foto davon Euch am Besten gefällt. Hier geht es lang zur Abstimmung --> Klick

Mind the gap: The very amusing English thread

Patrick Rollbis

Moderator
AT Moderation
Registriert
22.10.06
Beiträge
6.201
I absolutely recommend Eclipse for Java Developers. Great IDE!

No recommends please. Just tell me, where the mistake is. :)

Terminal is saying:
Code:
Exception in thread "main" java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:468)
	at java.lang.Integer.parseInt(Integer.java:497)
	at Test.main(Test.java:14)
 

Patrick Rollbis

Moderator
AT Moderation
Registriert
22.10.06
Beiträge
6.201
By the way, I've fixed the problem.
Here is the solution:

Code:
// everytime <
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Test {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		// >
		String s;
		Integer b=0;
		System.out.print(" Gebe s an: ");
		if ((s = in.readLine()) != null && s.length() != 0)
		b = Integer.parseInt(s) + 1;
		System.out.print(" b ist: ");
		System.out.println(b);
	}
}
 

Anu_bis

Jerseymac
Registriert
18.12.07
Beiträge
454
Maybe you will become a DH-Bike and then you will be a preasent for me? :) :p
 

Bajuware

Apfel der Erkenntnis
Registriert
23.04.08
Beiträge
724
ok, bajuware.. you think that websites share emotions but no information? I believe that a website share information (look at wikipedia ;) )
But Flash is very good and it's the future ;)

What do you think about Microsofts Silverlight?


PS: I speak English very well, vorwärts rückwärts very schnell ;)

i did not say that websites only share informations ;) There are different kind of websites, with different requets. Silverlight looks good, but i prefer Flex and Flash because more clients have installed the plugins, also because flash and flex give us more options than silverlight would ever do.
 

Bajuware

Apfel der Erkenntnis
Registriert
23.04.08
Beiträge
724
One day while taking a walk through the woods, I met a fairy. She told me that I had one wish. For a second I though about what to wish for. Then it came into my mind and I said: "I'd like to be in the most wonderful place on earth!" And boooom! I became a tampon.

Oh shit, isnt it bloody and sometimes extremly stinky there and what would be if you would gay, would you became an "Arschzapfen"- for otherside-Guys ?
 

MrNase

Champagner Reinette
Registriert
11.01.05
Beiträge
2.656
Oh shit, isnt it bloody and sometimes extremly stinky there and what would be if you would gay, would you became an "Arschzapfen"- for otherside-Guys ?

What a disgusting mental picture I have. Thanks a lot. :)


Nighthawk: false also means something like phony but I guess that's not what he meant. ;)