|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
how bout this:
Code:
String[] salutations = { "Mr.", Mrs.", ... };
or Code:
String salutations[] = new String[] { "Mr.", "Mrs.", ... };
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > string array |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|