How to split a web address into three parts without dot? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to split a web address into three parts without dot?

6th Mar 2022, 11:58 AM
Suleiman Darwish
2 Answers
+ 3
There is a split function in Java, read about it and you would be able to do it https://www.geeksforgeeks.org/split-string-java-examples/amp/ Once you split www.google.com you will get ["www", "google", "com"]. Use this as you want.
6th Mar 2022, 12:13 PM
Pulkit Kamboj
Pulkit Kamboj - avatar
0
Yes
6th Mar 2022, 12:08 PM
Suleiman Darwish