File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ranch Office and the fly likes How to check if String() value is numeric Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "How to check if String() value is numeric" Watch "How to check if String() value is numeric" New topic
Author

How to check if String() value is numeric

Bob Robertson
Greenhorn

Joined: May 16, 2004
Posts: 17
Hello,

[not relevant to this forum]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39869
    
  28
[Not relevant to this forum]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
[Not relevant to this forum]
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
[not relevant to this forum]


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Bob Robertson
Greenhorn

Joined: May 16, 2004
Posts: 17
[Not relevant to this forum]
Bob Robertson
Greenhorn

Joined: May 16, 2004
Posts: 17
[not relevent to this forum]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
[not relevant to this forum]


Java API Documentation
The Java Tutorial
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
[not relevant to this forum]

"I'm not back." - Bill Harding, Twister
Andrew Dondero
Greenhorn

Joined: Nov 17, 2009
Posts: 2
[not relevant to this forum]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39869
    
  28
Welcome to the Ranch

You did realise that was a 4-year old post?
Andrew Dondero
Greenhorn

Joined: Nov 17, 2009
Posts: 2
sure, but that shouldn't preclude fixing the mistake. This thread was a number 1 hit on google on this topic, so other people searching for this same thing would no doubt copy the code and find the compile error. i was looking to see if there was a more elegant solution, but ended up doing the simple try/catch. to save time I just copied the code rather than retype, and this small error caused a bit of frustration, because the tool we are using does not have an IDE like eclipse that will tell you in real time where and what the compile error is.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39869
    
  28
Thank you. I am splitting this thread.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39869
    
  28
We have a policy of trying to discourage simple replies to old threads, but I seem to get many comments like yours. I am sorry about that; I have actually posted on our moderators' forum asking whether we should alter that policy.
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20693
    ∞

If there is a policy about discouraging old threads, I am not aware of it. And as the mighty tyrant king of javaranch, it seems I should know about something like that.

I think it has been discussed. And I think that some folks have concerns about "waking a zombie" - so that if somebody asks a question about java 1.2 that was resolved in java 1.3 then an old thread might have bad advice. I think there is a little bit of a point to that. But, somebody could reply to that and say "hey, now that time has passed, here's what we do now." That doesn't seem bad.

Or maybe there is a big slice of something I'm overlooking.




permaculture Wood Burning Stoves 2.0 - 4-DVD set
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18997
    
  40

I am trying to remember previous discussions, but I thought that the zombie policy also had something to do with the fact that people were just bumping old topics -- by posting and deleting. With jforum, deleting isn't possible, and hence, bumping couldn't be done anonymously anymore. And also, deleting by a mod, seems to unbump the topic.

All in all, the only issue that I have with it, is that it may take some time to get into the mindset, of not worrying about zombies too much.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to check if String() value is numeric