Can anyone pls tell me how to use isNaN()
import javax.swing.*;
public class SalesTaxGrandTotal{ // begin class
public static void main(String args[]){ //begin main method
String inputString = JOptionPane.showInputDialog("Enter subtotal");
double subTotal = 0;
boolean tryAgain = true;
try{
subTotal = Double.parseDouble("inputString");
if(double.isNaN(subTotal)) // IT SHOWS ERROR.PLS HELP ME FIX
System.out.println(" It works!");
catch(NumberFormatException e){
inputString = JOptionPane.showInputDialog(
"Invalid subtotal. \n"
+"Please enter a number:");
System.exit(0);
} //end main method
} //end class
Well :) you have to write Double istead of double since Java is case sensitive and the correct class name is Double
Similar Messages
-
Can anyone tell me how to use the "find my ipod" app that I have for my ipod? I have the ipod registered on my itunes account but I can get the serial # to send it in for apple support? How does this feature work? Thanks
Turn on your computer.
Open your Browser.
Go to icloud.com
Select find my iphone/ipod -
Since installing the newest version of Firefox 4.0, I am unable to access my work e-mail which uses Lotus Domino Web Access. Can anyone please tell me how to correct this problem?
Sheesh. That looks hard. I think it will fall over at this point:
"Connect to my Exchange mailbox using HTTP" 'cos Thunderbird uses only the regular email protocols: POP, IMAP and SMTP.
Here (at work) we have in the past have had IMAP and SMTP enabled on our Exchange server so Thunderbird could then connect just like to any other regular internet-based service.
With the change here to outlook365/outlook 2010 I've had to switch to using DavMail which lets Thunderbird talk to the mail server using OWA.
I haven't (seriously) tried Exquilla. Whilst I have great respect for its author and some of his other add-ons, I saw no reason to use an add-on that required payment when DavMail works for free. -
I have finally set up a group in my contacts. Can anyone please tell me how to send an email to the entire group? running Mavericks on iMac
Drag the entire group into the To: field of a new message. The group is in your Address Book. You've used a name for it, like My Group. You can simply start typing "My Group" in that To: field and it should appear in a context menu.
-
Can anyone please tell me how the attribute node in LABVIEW ( ver 5) in builtin INSTRUMENT I/O exampe file works and how it is being made.............
Samura,
After running LabVIEW 5.1 I found in the Search Examples help file a link titled Instrument I/O. Under there I see several examples, one of which contains many attribute nodes. It is difficult for me to tell you pecifically what the purpose of each and every attribute node in this forum.
Generally, attribute nodes in LabVIEW 5.1 are used to set the properties of the front panel controls and indicators. The properties available in an attribute node are very similar to the properties made available by right clicking on a particular front panel control or indicator.
If you have a question about a specific attribute node, I would like to ask you to post in a new thread with a detailed description of the attribute node.
Thank you, and have a great day
Scott
Applications Engineer
National Instruments -
HT4356 Hi there can anyone please tell me how to configure my air printer to print A4?
Hi there can anyone please tell me how to get my printer (hp deskjet 3070A ) to print A4 size , thank you
Hi,
AirPrint does not provide much printing control.
You may use the HP ePrint mobile app to get more control of your print jobs:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02784317&cc=us&dlc=en&lc=en &product=4323648&tmp_track_link=ot_search#N1072 -
just recently, my i phone was stolen. Can anyone please tell me how to recover the photos, I presume I cloud would have it stored.thanks
Welcome to the Apple Community.
You can recover any photos in photostream, by logging into your account on your computer. Any photos that are in the camera roll and not in photostream may be in your backup if yo kept one. When you replace your phone, restore it using this back up. -
Hi, can anyone please tell me how to install the Nik collection into Adobe Photoshop CC 2014.2.1 ?
Glad I could help. Thanks for letting me know I did.
Gene -
Hi Everyone,
I lost my KN presentation that i spent a day with my boss to finish it. I lost it by mistakenly shutting down my Macbook pro. Can anyone please tell me how to recover the files back as i'm really2 in trouble and my job depends on it...
hmmm...how i hate myself for being such a careless person...
PLEASE HELP ME...
Thank you in advance.
Keynotes '09
Version 5.1.1 (1034)How exactly did you shut down your laptop? Not a hard restart (holding down the power button), I hope... if that's the case, then it is extremely unlikely the file is still intact on your computer. If it is, it would be an image on your RAM, and it is time-and-resource-intensive to recover it if it is even there. RAM memory is disposable and always being written over. Sorry dude...
If it wasn't a hard restart, Keynote should have made a backup, unless you 'Force Close'd it.
It really all depends on how your mac was shut down. -
Can any one tell me how to use EXISTS clause inplace of IN operator.
Hi All,
Can any one tell me how to use EXISTS clause AND (JC.EMPL_ID, JC.EMPL_RCD) inplace of IN operator.
SELECT COUNT (1)
FROM SYSADM.OHR_PERS_CURR PC
, SYSADM.OHR_JOB_CURR JC
WHERE PC.EMPL_ID = JC.EMPL_ID
AND (JC.EMPL_ID, JC.EMPL_RCD) in (
SELECT HS.EMPL_ID, HS.EMPL_RCD
FROM SYSADM.HU_SCRTY_JOB HS, ODSHR.OHR_SCRTY_USER_CFG OS
WHERE HS.HU_SCRTY_CFG_ID = OS.HU_SCRTY_CFG_ID
AND OS.DB_LOGIN = USER)
Thank you.SELECT COUNT (1)
FROM SYSADM.OHR_PERS_CURR PC
, SYSADM.OHR_JOB_CURR JC
WHERE PC.EMPL_ID = JC.EMPL_ID
AND EXISTS (
SELECT null
FROM SYSADM.HU_SCRTY_JOB HS, ODSHR.OHR_SCRTY_USER_CFG OS
WHERE HS.HU_SCRTY_CFG_ID = OS.HU_SCRTY_CFG_ID
AND OS.DB_LOGIN = USER
AND HS.EMPL_ID = JS.EMPL_ID AND HS.EMPL_RCD = JC.EMPL_RCD)
But why ?
Rgds. -
Can any one tell me how to use Image Prompt
Hi
Can any one tell me how to use Image Prompt in Answers?
Thanks
RahmanHad a look at this already?
http://download.oracle.com/docs/cd/E12103_01/books/AnyUser/AboutPrompts.html
Cheers,
C. -
TS4006 Can someone please tell me how I use icloud to find my ipad
Can someone please tell me how to use iCloud to find my iPad and lock it out as well?
Peter Stokes 100 wrote:
Simple I was led to believe I could store stuff in iCloud without the need for a Mac thereby making space on my laptop. You live and learn.
You can, iPhones/iPads and Macs work, as do PC's once there is an open account.
This is typical Apple to be honest. The only reason I use iTunes is for my iPod. Perhaps I need to find another mp3 player.
You do not need iCloud for iTunes, I am sorry that you misunderstand but iCloud and iTunes do not require each other.
I'm certainly not paying the inflated prices that Apple charge for their laptops that are quite frankly no better than my Dell.
I've had Dells, they are worth what you pay, no more. -
Can anyone please tell me how to stop email previews from appearing on my screen. I have turned off the preview option in settings on both my ipad and iphone, but they still keep appearing. Thanks
works ok on mine - (5, 7.1.1). Try again. with previews set to none, mine shows the sender and the subject line only. (you cannot get rid of the subject) with the other settings, you get the sender, subject line and however many lines you selected.
-
Can you pls tell me how to unfreeze my iMac?
Can you pls tell me how to unfreeze my iMac?
Hold down the power button until the iMac turns off. Then press the power button again to turn it back on. Does it then work correctly?
-
Can anyone please tell me how to reset the passcode on an ipod touch?
Can anyone please tell me how to reset the passcode on an Ipod Touch?
Conect your iPod to yur computer and restore via iTunes. Place the iPod in recovery mode if necessary. For recovery mode see:
iPhone and iPod touch: Unable to update or restore
Maybe you are looking for
-
My OS is Windows 7 Home Premium. My Firefox version is 4.0.1. When I try to setup Firefox Sync, I get a choice of "Create a new account" or "Connect". The first tells me my email address is already in use, but selecting the Sync tab does not give me
-
Distorted picture on creative zen sl
I was listening to my zen sleek and all of a sudden the picture towards the top of the screen became distorted....is there any way I can fix this?
-
Device error when burning Blu Ray disk at 96%
Very simple program to use so far. Just drag and drop. My current project was shot in HD 1080p about 2 hours or 13 gig long and I made 4 lower resolution DVD's no problem. I like how it shrunk it with out me having to do anything other than check th
-
When I am signed onto Etsy, there are certain tabs on the top of the page that I can not click open when using firefox, but when I use Internet Explorer, I am able to click open these tabs. The following tabs on my etsy page will not open: Your Shop,
-
Black text/graphics in PDF print grey
Hello, what follows is completely beginners question. I'm not even sure I'm in a right place, so my apologies (if I'm not). I have created a little flyer in Corel Draw. It is very simple and basically contains some black text, small black outlined ob