Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 4th, 2002, 09:53 PM
peter83 peter83 is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 19 peter83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
string array

i need to do a check for :

"Mrs", "Miss", "Mr", "Mdm", "Ms", "Mrs.", "Miss.", "Mr.", "Mdm.", "MRS", "MISS", "MR", "MDM", "MS", "MRS.", "MISS.", "MR.", "MDM.", "(Mrs)", "(Mdm)"; (*which are user input) and if it exist, i want to remove it before i add to database

these should not be in the fn.
i declared it this way:

String salutations = "Mrs", "Miss", "Mr", "Mdm", "Ms", "Mrs.", "Miss.", "Mr.", "Mdm.", "MRS", "MISS", "MR", "MDM", "MS", "MRS.", "MISS.", "MR.", "MDM.", "(Mrs)", "(Mdm)";
and the error i get is invalid declaration.
and how do i remove the salutations from the user input.

is it possible to store it in an array or smthing.


pls help asap.. codes will be helpful.

Reply With Quote
  #2  
Old September 4th, 2002, 11:13 PM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
how bout this:

Code:
String[] salutations = { "Mr.", Mrs.", ... }; 

or
Code:
String salutations[] = new String[] { "Mr.", "Mrs.", ... };

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > string array


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway