In this post you will learn how to remove white space from string in Java. This is one of the frequently asked Technical Interview Question either you are java developer or selenium Tester.We can solve this problem in two ways either using built in method or without using built in method.
In the first way we used built in method is ReplaceAll(arg0,arg1). This method is available in String class.
In the first way we used built in method is ReplaceAll(arg0,arg1). This method is available in String class.
Output:
Seleniumtutorialpoint
Seleniumtutorialpoint
No comments:
Post a Comment