Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int x=str.length()-1;
- for(i=0; i<x; i++){
- if(str.charAt(i)== '.' || str.charAt(i)== ',' || str.charAt(i)== '?' || str.charAt(i)== '!' || str.charAt(i)== ':' || str.charAt(i)== ';'){
- str.insert(i, " ");
- x++;
- // str.insert(3, "123");
- // str.insert(i, "123"); kill me ffs
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement