Checking for letters and numbers

Guys, i need to check a String to see if contains either letters or numbers and nothing else. I know that there's certain function is could use like:
1. isNum() - to check for numbers
2. isChar()-to check for letters
but the things is that i get error when i tried to use either 1 of these methods.
So is there any other methods i could use to do this validation??
Thx Guys

Ooo.. i saw that 2 method too but it says that it onli accept character but not string and wat i wan to check is a String.

Similar Messages

  • PIXMA MX522 using the keypad for letters and numbers

    I need to use a password to log onto a wireless network which has letters and numbers. The letters are the easy part but how do you get the keypad on the printer to give numbers. The password is: abc261 (example only) they key pad does the "abc" part but how do I get it to add the number "261"? Your help would be appreciated. Thank you.

    This might help
    Press the SETUP button on your printer's control panel.
    Using the arrows, select DEVICE SETTINGS, press OK.
    Select LAN SETTINGS and press OK.
    Select Wireless LAN Setup and press OK.
    If a message appears to press the WPS button, press STOP to cancel.
    Select STANDARD SETUP from the next screen that appears and press OK.
    Highlight your access point or router and press OK.
    Press OK again to confirm the access point name.
    Enter your passphrase using the keypad to the right.
    At the screen where you enter your passphrase, in the top right corner of the LCD screen you should see a :1 . This indicates that you are in numeric entry mode. If you press the asterisk key (*) it will switch to :A or uppercase letter mode, pressing asterisk again with switch to lowercase letter mode. To enter a letter in either letter mode, you will press the associated number key to cycle through the available letters. For example: To enter a letter "c", you will press the "2" key three times.
    Press OK when done.
    The LCD screen will say "Connected" if the password is correct.
    John Hoffman
    Conway, NH
    1D Mark IV, Rebel T5i, Pixma PRO-100, MX472

  • Oracle jdbc driver: sort order between letters and numbers

    Hello,
    I am facing a very strange problem with sortering of data between letters and numbers.
    I'am executing the following SQL request:
    SELECT nummsg FROM CWD01 where nummsg = '00000001' or nummsg = 'AAAA0001' order by nummsg
    When this request is executed with sqlplus or SQuirreL, I receive the expected result:
    NUMMSG
    00000001
    AAAA0001
    When I execute the following java code:
    try {     String className = "oracle.jdbc.driver.OracleDriver";     Class driverObject = Class.forName(className);     Connection con = DriverManager.getConnection("myurl", "user", "pass");     Statement stmt = con.createStatement();     ResultSet rs = stmt.executeQuery(           "SELECT nummsg FROM CWD01 where nummsg = '00000001' or nummsg = 'AAAA0001' order by nummsg");     while (rs.next()) {           String x = rs.getString("nummsg");           System.out.println("nummsg " +x);     } } catch (Exception e) {     System.out.println("Failed: Driver Error: "+ e.getMessage()); }
    I receive the unexpected result:
    nummsg AAAA0001
    nummsg 00000001
    We are using the following version of Oracle:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    and the following jdbc driver:
    Oracle Database 10g Release 2 (10.2.0.1.0) JDBC Drivers (ojdbc14.jar (1,536,979 bytes) - classes for use with JDK 1.4 and 1.5)
    Any suggestion?

    I checked, I'am sure of the problem:
    package test;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    public class Test {
         public static void main(String[] args) {
              try {
                   String className = "oracle.jdbc.driver.OracleDriver";
                   Class driverObject = Class.forName(className);
                   Connection con = DriverManager.getConnection("jdbc:oracle:thin:@<server>[:<1521>]:<database_name>", "user", "password");
                   Statement stmt = con.createStatement();
                   ResultSet rs = stmt.executeQuery(
                      "SELECT nummsg  FROM CWD01 where nummsg = '00000001' or nummsg = 'AAAA0001' order by nummsg");
                   while (rs.next()) {
                        String x = rs.getString("nummsg");
                        System.out.println("nummsg " + x);
              } catch (Exception e) {
                   System.out.println("Failed: Driver Error: " + e.getMessage());
    }The table CWD01 defines the column NUMMSG as VARCHAR2(8).
    The output gives:
    nummsg AAAA0001
    nummsg 00000001

  • When I tried to print my boarding pass from Continental, all I received was a page of small letters and numbers.

    When I tried to print my boarding pass from Continental, all I received was a page of small letters and numbers.

    I see where you say a newer version fixed the printing bug, but when I try to check for updates, it tells me I have the newest version. Your posts concerning the small print questions are a month old. What do I do?

  • HT4623 I down loaded ios 7 to my wifes ipad 2  but because of the streamlined look my wife can bearly see the letters and numbers on the key board because of an eyesight problem  She had no problem with the old keyboard.  Is there a way to make the letter

      I downloaded ios 7 to my wifes ipad 2.  The only problem was, with the new system the letters and numbers on the keyboard became so streamlined that my wife had trouble seeing them because of a eye problem.  Is there a way to get the old keyboard back and if not how do you uninstall ios 7?

    I had thought this situation was solved but it just got worse. In addition to being without service for several days I am now being charged  a cancellation fee for a broadband service that BT disconnected in error. BT Vision was also terminated by BT but the set up charges are still in place. Does anyone know who the relevant Ombudsman is? I called BT from America on Friday - for an hour - while someone called Aruj sorted out why there is an order 'in progress' that I didn't initiate; why I have fees relating to a problem created by BT and why there are references to a house move that didn't take place and a BT Vision service I no longer have but didn't cancel myself. He assured me it would be rectified and my bill would be reduced by 139 pounds and we would get confirmation of this later that day. I asked him what chance there was that this would not actually happen - he said no chance at all; my new bill would be 23.50.
    There was no text message. An online chat person today told me there had been a fee reduction request which had been declined and there was nothing else he could help me with as he dealt only with broadband. But he would get BT Vision to email me. They always seem so helpful.............
    I'm sure I'm listed somewhere as 'a problem', there's no other explanation for why I get the runaround

  • Keyboard letters and numbers not working after (?) serious memory use (?)

    So I've been having problems with my keyboard on my MBP 15-inch, Early 2011 (OS version 10.7.5, fully updated). It stops working after I use Photoshop or InDesign (cs6) for a long period of time or when I'm surfing the web a lot. The best example where it for sure stops working when surfing the web is when I'm on tumblr and I scroll through dozen of pages on my feed. When it stops working, the only keys that continue to work is everything but the numerals and letters.
    I've taken it in, replaced the keyboard and talked to apple support and they can't figure it out. I assumed that it stops working because of all the loading images, info and memory that is in use when applcations are open but I don't know if it's because of memory.
    One thing that always occurs right before the keyboard stops working is this sound from the speakers that sounds like gears turning three times or three fast ticks. Only once has the letters and numbers start working and I don't now what I did to make it come back but I heard the three ticks play again.
    But my only solution to make it start again is restarting the computer.
    Does anybody have this problem/know the solution to make this stop?

    The only Upperfilters and Lowerfilters you were supposed to remove were the ones in 4D36E965 which is for the Optical Drive.
    The other keys, for example 4D36E966 and 4D36E967 etc.. are for other devices, such as the keyboard, mouse, and possibly other devices like sound and graphics. This is not good, because its hard to manually restore those filters without knowing what was in there before you deleted them.
    Did you backup the registry before deleting the keys?
    You could try a System Restore to restore the registry back to a previous state. If you boot into Safe Mode (press F8 or F5 before XP boots up), you can select a previous date to restore back to.
    Then follow these instructions http://support.microsoft.com/default.aspx?id=314060

  • TS2634 My wireless keyboard is auto filling letters and numbers what do I do to stop this?

    My wireless keyboard is auto filling letters and numbers what do I do to turn it off?

    Hi Pegfraser,
    Does this happen only with the wireless keyboard and not the touch keyboard?  And which Apps does this happen with?
    In general, auto fill is a settings thing.
    For Safari:  Settings, Safari, AutoFill
    System Wide: General, Keyboard, Auto-Correction (may seem like auto fill)
    and you can setup Shortcuts in the Keyboard settings, but you would know if you'd done that.
    ivan

  • I don't know why whenever i choose " check for updates " and download itunes 11.1 , it never shows any downloads , and i need itunes 11.1 so i can restore my iphone again .. help please

    I don't know why whenever i choose " check for updates " and download itunes 11.1 on my desktop , it never shows any downloads .. even when i tried downloading it from the website, and i need itunes 11.1 so i can restore my iphone again .. help please

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • My serialnummer includet letters and numbers, in the mask i can only use the numbers. It ignore the letters. what can I do?

    I have subscribed crativecloud prepaid. I am prompted to enter the serial number. The displayed in my Adobe ID serial number contains letters and numbers. In the input mask for the serial number but the letters are consistently not accepted. What can I do

    Hwelchert if you are being prompted to enter a serial number it is due to the computers inability to contact our activation server.  You can find additional details on how to resolve the connection error at Sign in, activation, or connection errors | CC, CS6, CS5.5 - http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html.

  • Check for null and empty - Arraylist

    Hello all,
    Can anyone tell me the best procedure to check for null and empty for an arraylist in a jsp using JSTL. I'm trying something like this;
    <c:if test="${!empty sampleList}">
    </c:if>
    Help is greatly appreciated.
    Thanks,
    Greeshma...

    A null check might not be you best option.  If your requirement is you must have both the date and time component supplied in order to populate EventDate, then I would use a Script Functoid that takes data and time as parameters.
    In the C# method, first check if either is an empty string, if so return an empty string.
    If not, TryParse the data, if successful, return a valid data string for EventDate.  If not, error or return empty string, whichever satsifies the requirement.

  • I have installed itunes 10.7 several times.  All goes well.  After reboot, I go into itunes and check for updates and it says I need to download the update 10.7! (And so cant sync with my Iphone)

    I have installed itunes 10.7 several times, all goes well. After reeboot, I go to check for updates and it still wants to update to version 10.7! I cant sync to my iphone4 because I get an error message saying I need version 10.6.3 or later. Help

    Thank you for getting me started on the track by mentioning "Revo" Uninstaller.  The results of "Revo" spoke volumns on why a successful install of ITunes is so difficult to achieve.  It is the evil "BONJOUR".
    I then tripped upon the following site by Apple and the detailed directions (I read, printed, re-read and followed the instructions.  It was intense) brought a successful ITunes, Quick Time and the lovely Bonjour home.  Thank you for the start JD42.
    http://support.apple.com/kb/HT1923

  • Why yahoo/gmail retrieval and facebook app so so slow when in WIFI. But using the internet to check for emails and facebook is fast using the same WIFI connection??

    Why yahoo/gmail retrieval and facebook app so so slow when in WIFI. But using the internet to check for emails and facebook is fast using the same WIFI connection??

    Hi SandyS_VZW,
    Yes tried resetting the wifi connection and problem still persist.
    Here it is...to make it clear. Connected thru the same wifi at home...
    -> emails (yahoo/gmail) and facebook WEBSITES are working fine and fast when using/accessing thru a browser (chrome/samsung browser) - no problem with this.
    -> emails (yahoo/gmail) and facebook APP is soooooo sloooww (thru the App). Slow I mean comparing it to using their browser/websites... news feeds/emails refreshing so quickly but not when using the APP installed in Samsung Galaxy Note 4. Slow like - It will take around 5-10minutes just to get your emails and news feed refreshed.
    THIS HAPPENS ONLY WHEN CONNECTED THRU A WIFI which has a speed of 10-20mb. It is not happening when connected to the network data/plan.
    My wife has the same Samsung Galaxy Note 4 (coming from different provider at&t) - same setup (emails, fb app), same wifi connection, but she's not experiencing anything like it.
    Not sure why, I dont want to believe that while connected to a WIFI, Verizon is restricting anything and ******* me off to make me switch to my data plan connection everytime - which is Unfair!
    Was there a known issue similar about this case?
    thanks,

  • My MacBook Pro is running VERY slow. I am constantly getting pop-ups and now I got one that says my computer may be infected. What do I do to check for viruses and or remove them if there is one?

    What do I do to check for viruses and or remove them if there is one? I have never had a problem with my mac until now. It is running VERY slow

    This is what it came up with.... any ideas?
    EtreCheck version: 1.9.11 (43) - report generated May 27, 2014 at 11:07:36 PM CDT
    Hardware Information:
              MacBook Pro (15-inch, 2.53GHz, Mid 2009)
              MacBook Pro - model: MacBookPro5,4
              1 2.53 GHz Intel Core 2 Duo CPU: 2 cores
              4 GB RAM
    Video Information:
              NVIDIA GeForce 9400M - VRAM: 256 MB
    System Software:
              OS X 10.9.3 (13D65) - Uptime: 1 day 23:26:50
    Disk Information:
              Hitachi HTS545025B9SA02 disk0 : (250.06 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) / [Startup]: 249.2 GB (20.75 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-868 
    USB Information:
              Apple Inc. Built-in iSight
              Apple Internal Memory Card Reader
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
    Gatekeeper:
              Anywhere
    Kernel Extensions:
              [not loaded] com.rim.driver.BlackBerryUSBDriverInt (0.0.39) Support
              [not loaded] com.rim.driver.BlackBerryUSBDriverVSP (0.0.39) Support
    Problem System Launch Daemons:
              [failed] com.apple.wdhelper.plist
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist Support
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist Support
              [loaded] com.macpaw.CleanMyMac.helperTool.plist Support
              [loaded] com.macpaw.CleanMyMac.trashSizeWatcher.plist Support
              [loaded] com.macpaw.CleanMyMac.volumeWatcher.plist Support
              [running] com.whitesmoke.uploader.plist Support
    User Login Items:
              iTunesHelper
              AdobeResourceSynchronizer
    Internet Plug-ins:
              JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
              FlashPlayer-10.6: Version: 13.0.0.214 - SDK 10.6 Support
              Default Browser: Version: 537 - SDK 10.9
              AdobePDFViewerNPAPI: Version: 11.0.06 - SDK 10.6 Support
              AdobePDFViewer: Version: 11.0.06 - SDK 10.6 Support
              Flash Player: Version: 13.0.0.214 - SDK 10.6 Support
              QuickTime Plugin: Version: 7.7.3
              Silverlight: Version: 5.1.10411.0 - SDK 10.6 Support
              iPhotoPhotocast: Version: 7.0
    Safari Extensions:
              WhiteSmoke: Version: 1.0.0.1
              Vidx: Version: 2.0
              DivX Plus Web Player HTML5 <video>: Version: 2.1.2.145
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
              Move-Media-Player: Version: npmnqmp 071801000001 Support
              fbplugin_1_0_1: Version: (null) Support
    3rd Party Preference Panes:
              Flash Player  Support
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                  12%          DashboardClient
                   6%          coreaudiod
                   6%          WindowServer
                   5%          repair_packages
                   3%          VLC
    Top Processes by Memory:
              549 MB          repair_packages
              143 MB          com.apple.WebKit.WebContent
              131 MB          Safari
              119 MB          installd
              94 MB          mds_stores
    Virtual Memory Information:
              809 MB          Free RAM
              1.82 GB          Active RAM
              224 MB          Inactive RAM
              630 MB          Wired RAM
              3.66 GB          Page-ins
              207 MB          Page-outs

  • Duplication check for Lead and Contact

    Hi,
    Can i confirm that, there is no duplication check for Lead and Contact during the new reacord adding?
    I also realise that during the Lead convertion, CRMOD also never check for duplication even i have existing contact available?
    Is there anyway for us to activate the duplication check during the Lead convertion?
    Regards,
    SK

    SK,
    System can check duplicate if you add external id for record (Lead and Contact).
    For more information please refer topic 'About record duplicates and external ids' on page no.1303 of OnDemand help.
    Hope this helps.
    Santosh

  • When firefox checking for updates and updates found but due to proxy restrictions it unable to download the updates then it continue trying to download that and this time it creating problem on running javascript

    When firefox checking for updates and updates found but due to proxy restrictions it unable to download the updates then it continue trying to download that and this time it creating problem on executing javascript and raising errors.

    What are the error messages you are seeing?

Maybe you are looking for

  • Chnages in the Graph properties are not getting reflected in the Browser.

    Hi, I have made some changes in the Graph properties in web template, Eg. : 1. change in color of a series for a columnar type graph          2.change in the Text properties of Graph Series.. When I save the template and try to run in the Browser, th

  • Run At:Server not working

    I have written a simple script on a form field : this.rawValue = "sample data" which is not workin at server. Any idea what's wrong? Nith

  • What's wrong with my wsdl?

    Hello, I am struggling with a web service that won't deploy. My wsdl is valid: I checked it with Eclipse but the web service won't deploy. When I try to browse it I get an empty html table saying "Port Name Status Information". Can anyone help? Julie

  • Issue at making an interface

    Hi guys In oDI 10.1.3.5 I am making an interface that has many relations between tables of an ERP of Oracle when I drag an drop any of them it's pasted in the source area in the interface but I can not see its columns. i can check the number of rows

  • I need a phone number to talk to someone in costumer service

    I need a phone number to talk directly to costumer service