The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Replacing dots with spaces

When I give in for example a String called : This.is.a.test and press the convert button , the textfield becomes empty.
I used String function : replace all to replace the dots with spaces.
When I set the text of the textfield with a normal string(" ") it works but with a variable it doesnt work.

Re: Replacing dots with spaces

I have no idea what your problem is. You need to provide a better explanation. Don't reply "Just run my code and you will see what I mean". If you can explain it clearly then I don't need to waste my time copying your code, compiling it and running it.