Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

searching a string

 
kevin schmidt
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have two strings, one with a period and one without a period in it. How do I check the strings for the period? I should know this, but I can't think straight. TIA.
kevin
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the indexOf() method in the API, should do what you want
Jason
 
adi khalaf
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kevin schmidt:
Hi,
I have two strings, one with a period and one without a period in it. How do I check the strings for the period? I should know this, but I can't think straight. TIA.
kevin

you can download the j2sdk-1_3_1-doc from java.sun.com,there are
particular comments about variables and motheds of java classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic