The Artima Developer Community
Sponsored Link

Java Answers Forum
New to programming and need help

1 reply on 1 page. Most recent reply: Sep 30, 2005 6:06 AM by Kondwani Mkandawire

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
Jaelyn

Posts: 6
Nickname: tarheel
Registered: Sep, 2005

New to programming and need help Posted: Sep 30, 2005 5:57 AM
Reply to this message Reply
Advertisement
I am fairly new to java programming,and I wrote a program that functions as a calculator. Everything works, but I have to do error handling which entails me writing an error message if the user enters a letter of the alphabet instead of the number. My problem is I don't know how to say that num1 is not equal to any character of the alphabet.


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: New to programming and need help Posted: Sep 30, 2005 6:06 AM
Reply to this message Reply
use try-catch blocks... You may google:
Java try-catch blocks Tutorial to get a detailed
overview on how they work.

Flat View: This topic has 1 reply on 1 page
Topic: I would like to ask some help.... Previous Topic   Next Topic Topic: Text in a JFrame?

Sponsored Links



Google
  Web Artima.com   

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