Article View: borland.public.jbuilder.java.language
Article #8107Simple CASE Statement
From: rwinslow
Date: Wed, 18 Apr 2001 18:21
Date: Wed, 18 Apr 2001 18:21
32 lines
2167 bytes
2167 bytes
I am having problems with a case statement, I am sure that I have seen code
with what I need in but have had no success looking through several
reference books or the JBuilder help.
This I can do already, in another part of the code (a simple library system
accessed through the console)
switch (aChar)
{
case 'A' :
hanAdd(); break;
case 'P' :
hanPrint(); break;
case 'Q' :
hanQuit(); break;
case 'F' :
hanFind(); break;
default :
break;
}
What I want to do in another part is to check that the char at a place in a
String is either a number, a lower case letter or a capitol letter. I think
it is along the lines of 'case "a..z" ' but have been unable to compile
using single/double quotes in several combinations like 'a' .. 'z' and all
the others I can think of.
If you know the format please pass your knowledge to me.
Thanks,
Richard Winslow
rwinslow@hotmail.com
Technical Details
Message-ID:
<tVkD6.2213$a46.163906@news2-win.server.ntlworld.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!newsfeed.google.com!sn-xit-03!supernews.com!feeds.vnews.net!ptdnetP!newsgate.ptd.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.icl.net!newspeer.clara.net!news.clara.net!btnet-peer!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,b321939a52036c70,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-04-18 12:36:03 PST Path: arc1-ca.pugleaf.net!supernews.google.com!newsfeed.google.com!sn-xit-03!supernews.com!feeds.vnews.net!ptdnetP!newsgate.ptd.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.icl.net!newspeer.clara.net!news.clara.net!btnet-peer!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "rwinslow" <rwinslow@hotmail.com> Newsgroups: borland.public.jbuilder.java.language Subject: Simple CASE Statement Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 Message-ID: <tVkD6.2213$a46.163906@news2-win.server.ntlworld.com> Date: Wed, 18 Apr 2001 19:21:54 +0100 NNTP-Posting-Host: 213.105.85.116 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 987618009 213.105.85.116 (Wed, 18 Apr 2001 19:20:09 BST) NNTP-Posting-Date: Wed, 18 Apr 2001 19:20:09 BST Organization: ntl Cablemodem News Service