Friends, today I will tell you through this blog how you can get his third word from any string through java. Let’s try to understand through java.
Get Third Word from String Using Java, Extract Third Word from String by Java, How to Third Word from String in Java
You have written the code of java below in a very easy way. Through which you can very easily samajh how you can get his third word from string via java.
Get Third Word from String Using Java
String str = "Experts PHP Technology Pvt Ltd."; String sp = str.split(" "); System.out.println("third word is " + sp); //Technology