• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to check if String() value is numeric

 
Bob Robertson
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

[not relevant to this forum]
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Not relevant to this forum]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Not relevant to this forum]
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[not relevant to this forum]
 
Bob Robertson
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Not relevant to this forum]
 
Bob Robertson
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[not relevent to this forum]
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[not relevant to this forum]
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[not relevant to this forum]
 
Andrew Dondero
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[not relevant to this forum]
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You did realise that was a 4-year old post?
 
Andrew Dondero
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I am splitting this thread.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 21736
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
Henry Wong
author
Marshal
Pie
Posts: 21497
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic