Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java help.

Name: Anonymous 2010-09-07 8:05

Sup /g/.

Starting to learn java on my own via. a book. As you see below, I'm doing an extremely simple pop-up window class with a dialogbox. However, I cannot make it print out simple text and what you put in the dialogbox. I would think a simple " " was enough to signify a set string of letters but I'm getting an error.

Halp?


import javax.swing.JOptionPane;
public class Dialogboxmedinput
{
public static void main(String[] args)
{
String name = JOptionPane.showInputDialog("What is your name?");
System.out.println("Hello" name);
System.exit(0);
}
}

Name: Anonymous 2010-09-07 8:15

>>5
This post does not parse. In fact, this post is an excellent illustration of why operator overloading is a bad idea.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List