Program to delete substring from string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Program to delete substring from string

i need full code

23rd Dec 2016, 3:10 PM
burhanuddin
burhanuddin - avatar
5 Answers
+ 24
You can easily use String.replace(). String helloWorld = "Hello World!"; String hellWrld = helloWorld.replace("o","");
23rd Dec 2016, 4:15 PM
Remmae
Remmae - avatar
+ 3
I need a lot of money ^^ You have the intention to re-post how many times?!?
23rd Dec 2016, 3:18 PM
visph
visph - avatar
+ 1
what is substring btw
23rd Dec 2016, 3:35 PM
Fluffy Rabbit
Fluffy Rabbit - avatar
+ 1
a substring is actually a "string" that is included in another longer string... for example: string a="Hello World" a substring of a is : "Hello" or "lo Worl" or even "Hello World" :)
23rd Dec 2016, 8:19 PM
Bourhan Dernayka
Bourhan Dernayka - avatar
+ 1
@Bourhan Dernayka thanks!
23rd Dec 2016, 10:44 PM
Fluffy Rabbit
Fluffy Rabbit - avatar