Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. int x=str.length()-1;
  2. for(i=0; i<x; i++){
  3. if(str.charAt(i)== '.' || str.charAt(i)== ',' || str.charAt(i)== '?' || str.charAt(i)== '!' || str.charAt(i)== ':' || str.charAt(i)== ';'){
  4. str.insert(i, " ");
  5. x++;
  6. // str.insert(3, "123");
  7. // str.insert(i, "123"); kill me ffs
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement