The Artima Developer Community
Sponsored Link

Java Answers Forum
Java Question

1 reply on 1 page. Most recent reply: Oct 16, 2002 11:54 AM by Eugene

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Eugene

Posts: 4
Nickname: et
Registered: Oct, 2002

Java Question Posted: Oct 16, 2002 11:52 AM
Reply to this message Reply
Advertisement
Hi,

Let's say if I am trying to input a string, and I want to prevent people from just hittong the send button and send a null, what check should I check for?

The input is a string variable.

Example :

x = JOptionPane.showInputDialog("Enter 1st Integer: ");

Thanks and Rgds


Eugene

Posts: 4
Nickname: et
Registered: Oct, 2002

Re: Java Question Posted: Oct 16, 2002 11:54 AM
Reply to this message Reply
Sorry left out something.

My next step is to convert the input string to a int variable. If people input character, the conversion will go hay-wire. How to by pass this problem as well?

Flat View: This topic has 1 reply on 1 page
Topic: JPS: Printer Discovery w/ Port settings Previous Topic   Next Topic Topic: help!!!!!!!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use