[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
how to have a response with corresponding* name  XML
Forum Index » New to Java
Author Message
trainerjeff

Newbie

Joined: 01/24/2010 18:12:28
Messages: 2
Offline

in my chapter 1 of big java they tell me to write a program that says for a dialog box to pop up and ask me for my name, then i type a name, and then it responds back with that name.

import javax.swing.JOptionPane;
public class pane {



public static void main(String[] args) {

String name = JOptionPane.showInputDialog ("what is your name");
System.out.println("name");

JOptionPane.showMessageDialog(null, "I'm sorry, (your name) cannot allow that");


where iadded your name is what i believe my problem is. i don't know how to call forth a name inside of a dialogue. any help would be thankfull.
stdunbar

Newbie
[Avatar]

Joined: 06/22/2005 14:51:37
Messages: 703
Location: Superior, CO, USA
Offline

Do you know how to concatenate Strings?


Thanks for using the forums at hotjoe.com
[WWW] [Yahoo!] [ICQ]
trainerjeff

Newbie

Joined: 01/24/2010 18:12:28
Messages: 2
Offline

not yet
 
Forum Index » New to Java
Go to:   
Powered by JForum 2.1.8 © JForum Team
This site built by Scott Dunbar of Xigole Systems. © 2005-2010 - Scott Dunbar
Java and the Java Get Powered logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.
hotjoe.com and xigole.com have no affiliation with Sun Microsystems, Inc.