Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Input Validation

$
0
0
I'm creating a tax calculator in Java. I need to make it so that if the user does not enter a double value as their taxableIncome, the program will exit. I know it has to be something like
if (taxableIncome != )
but I don't know what to put before the last parentheses. Is there a variable that Java recognizes as being a generic double value? I'm very confused as to how to do this. Thank you!

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>