-
JOptionPane single string input w/four values
I'm working on a lab assignment that must use one JOptionPane and prompt the user for 4 values and returns a single String value containing these four different values. Once I get the user input I need to convert them to int values.
In my experience with JOptionPane i've always taking one int at a time and i'm not finding much help either in my books or on the internet.
I will also have to validate the user input to insure that each number is within range.
Can anyone help with these two items?
//code snippet (so far)
public static void main( String args[] ) {
inputString = JOptionPane.showInputDialog( " Enter Values-W, X, Y and Z: ");
}// end main
-
Similar Threads
-
By Marcos in forum VB Classic
Replies: 3
Last Post: 01-25-2006, 11:18 AM
-
By Rob Teixeira in forum .NET
Replies: 15
Last Post: 05-31-2002, 03:30 PM
-
By Chandra in forum VB Classic
Replies: 0
Last Post: 06-22-2000, 12:52 PM
-
By Chandra in forum VB Classic
Replies: 0
Last Post: 06-22-2000, 07:30 AM
-
By Bob Hines in forum Database
Replies: 7
Last Post: 04-27-2000, 11:14 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks