Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Vector. Plz help!

 
Dmitri Mayer
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
user send me anything, and i have to send it to Vector and check if there any nimbers, if there is, how many, and check if there is any latters.
 
shri mon
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You did not mention exactly what the user is sending? You can put any object into the vector.

There are methods in the Character class like isLetter,isDigit to identify digits and characters.
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question seems not related to SCJP, and next time, it is better to post similar questions at:
http://www.coderanch.com/forums/f-33/java

Nick
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact I'll make myself useful and move it to...here.
[ January 24, 2005: Message edited by: Barry Gaunt ]
 
Marco Davids II
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please be a bit more specific ... What is the user sending, what do you need to do.

Some code would also be helpful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic