Is there anyway of validating a string so that it contains only char's
is there anyway of validating a string so that it contains only char's,no special char's and no numaric values
thanx in advance
sudharshan
It depends what you consider a long string. Running with various lengths I get the following results (Sun jvm 1.3.1, win NT 4):String length*iterations fixed as: 10000000
times totalled over 10 tests
length charAt toCharArray ratio
1 8108 23798 293.51%
2 6234 14000 224.57%
4 5846 9045 154.72%
8 5423 7608 140.29%
16 5250 5719 108.93%
32 5142 5249 102.08%
64 5062 5000 98.78%
128 5094 4875 95.70%
256 5047 4797 95.05%
512 5014 4782 95.37%
1024 4923 4874 99.00%
2048 5016 4766 95.02%
4096 5015 4813 95.97%
8192 5016 4843 96.55%
16384 5000 4984 99.68%
32768 5016 5141 102.49%
65536 5232 5643 107.86%
131072 5374 6266 116.60%
262144 5703 12188 213.71%
524288 5765 12313 213.58%
1048576 5499 9141 166.23%
2097152 4907 6906 140.74%
4194304 4936 6220 126.01%
8388608 4856 5972 122.98%So there does seem some advantange in using toCharArray for strings around 100 to 10000 characters long, which might imply that the charAt method isn't inlined in Sun's JVM. Most of the web pages recommending toCharArray run their benchmarks somewhere in this region.
Pete
Similar Messages
-
TS4147 Is there anyway possible to get contacts back that were not backed up on the iCloud?
When I updated my phone I had to erase my phone completely. It did not bring back all my contacts, therefore I'm guessing I didn't have the backed up on iCloud. It might be stretch but is there anyway I can get my old contacts from before the restore back?
Apple States that you should be able to restore from the most recent 3 back ups. if your contacts aren't in these, there isn't much you can do.
-
Is there anyway to go straight to your hotmail inbox when you click on mail.
I gotta ask you, out of curiousity, is it that inconvenient to hit one additional button to get to the specific mailbox you want? Just wondering.
-
I recorded over a voice memo on accident is there anyway I can undo that to get the old one back it's very important that I have it for court reasons
No. Not unless you did a backup that included that voice memo, then you could restore from that backup.
-
Is there anyway to get my pictures back that were on iCloud from my old Mac that was stolen?
My laptop was stolen earlier this month and it had all my pictures from vacation, prom, graduation, etc that was on it on iCloud (I deleted them from my phone). I got a new laptop now and I was just wondering if there was anyway I could get them back
No.
You didn't enable Find my iPod, that's the only way to track. -
I have felt my phone ring in my pocket for two days but can't see the messages! I finally got the messages app set up on my mac and I can get imessages now, I was just wondering if there was anyway that I could get the texts that I've been misisng the last couple of days.
No. Not without getting the display replaced first. Many Apple Stores in the US and UK can replace the display on the iPhone 5 or 5c (but not the 5s currently) for $149. Make an appointment at the genius bar.
-
I have lost "notes" that were on my iphone. I didn't have them backed up up my computer. Is there a way to retreive these old notes.?
No. You probably should have backed it up while it was working during those 6 days...
-
Is there anyway to locate a lost iPad that is not powered up?
My iPad was stolen & seems to have been turned off soon after it was taken. What/ how many different ways is there to locate it? Please help?
Look for it just like you would look for a lost wallet.
-
Is there anyway I can recover a picture that was taken with a LG Octane that was not saved?
Is there any way I can recover a picture that was taken with a LG Octane but wasn't saved?
I'm not sure. If you were to get it waived, you'd have to use Contact Apple Support.
-
Just wondering if I can get my songs from my lost iPhone to my new iPhone. I didn't use iCloud or iTunes on a pc.
Shane0224 wrote:
... I didn't use iCloud or iTunes on a pc.
It is recommended and prudent, that you Backup and Sync on a Regular basis...
How to BackUp
http://support.apple.com/kb/ht1766
What gets Backed Up
iTunes http://support.apple.com/kb/ht4946
iCloud http://support.apple.com/kb/PH2584 -
please help
There is a little chance that your pictures are included in your last iCloud or iTunes backup, if the photos were stored in the camera roll. Otherwise they are probably gone. For the future I would suggest to start saving your photos additionally (in iPhoto etc.) on your Mac or PC or any other cloud storage like Dropbox.
-
Hey everybody its my first time ordering something from itunes and i accidently oredered an album instead of the movie I am really stuck dont know if i can even do anything about it but sure am curious as to fixing this issue please help. tech support is closed and need a responce asap.!
Open iTunes
Navigate to iTunes Store:Account:Purchase History
Click on "Report a Problem"
Fill out the form detailing why you're seeking a refund.
Apple should respond within 48 hours.
Good luck. -
I have saved so many pages in my reading list and I would like to go the old fashioned route and print them out so that I can have a good look at the title or one liner and see which ones I want to go back to first. Should I have book marked them rather?
In that case you are better off using Bookmarks.
Go to a (reading list) website you want to bookmark.
From the Safari menu bar click Bookmarks > Add Bookmark
You can create a new folder for those bookmarks ...
Click the Bookmarks icon top left side of the Safari toolbar.
Click + bottom left corner of that window.
Then name the folder.
Each time you add a new bookmark select that folder from the Add Bookmark pop up menu. -
I am zooming in on my homework in mastering physics. I am using a large screen and sitting far away. It uses a lot of images containing the text I need to read, but when the images are upscaled, they become very blurry and hard to read. A simple sharpen effect after it is resized would fix the problem. Is there a way to do this in firefox? like a command line switch or maybe something in about:config? Thanks
It may sound counter-intuitive, but could you try disabling graphics hardware acceleration? Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
You usually need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
orange Firefox button ''or'' classic Tools menu > Options > Advanced
On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
If you restart Firefox, is the issue resolved? -
i have just downloaded harry potter and deathly hallows part 2 and it doesnt have any of the special features or itunes extra, is there anyway you can fix it?
That's right. You cannot. Sorry.
B-rock
Maybe you are looking for
-
How to retrieve values in XML into a plsql table type
Hi I have an XML doc like below which is a Web Service response message. <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http
-
GRC 10: How to upload Org Level Rules in GRC 10?
Hello Friends, we have implemented GRC 10 recently but missed to move org level rules from GRC 5.3 to 10. I don't see an option to load org rules in SPRO. Can you please let me know how can i load org rules from 5.3 to 10 with out disturbing the exis
-
Error-handling in form routines to be called from maintenance view
hello, i have created a table maint. dialog. Under 'enviroment->modification->events' you can create form-routines for your own coding. I have the maint.event '01 - Before saving the data in the database'. Here i do some checks if entered values in s
-
How to assign smartform to print program for payment advice
Hi! There is already a print program and a smartform for payment advice. This was working before as I was told. But when I checked table TNAPR, there is no entry in the table with the program name and neither for the smartform. How can I use them tog
-
Enhanced Podcasts not working in 10.4.4 Firefox?
Every iWeb podcast page I've visited in Firefox 1.5 loads the QuickTime movie and shows an image and the playhead for a split second before being covered up by the QuickTime question mark image which links to the Quicktime download page. http://web.m