Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String delDel(String str) {
- String name=new String();
- if(str.length()<3)
- {
- return str;
- }
- if((str.charAt(1)=='d') && (str.charAt(2)=='e')&&(str.charAt(3)=='l'))
- {
- return str.replace("del","");
- }
- else{
- return str;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement