Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: James Rivera   on Nov 14 In Java Category.

  
Question Answered By: Francis Riley   on Nov 14

The problem is that the split function uses regexp and not a simple
string.

The dot has a specific signification: a joker for all chars.
To split your string  in a array  of string, you have to use:
vParametro.split("\\.")

With your exemple, you will obtain a String[] with three elements.

Share: