Advertisement
Chiddix

delete

Sep 13th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1.     /** If str is found in myLine the first occurrence of str has been
  2.      *  removed frm myLine; otherwise myLine is left unchanged.
  3.      *  @param str the strng to be removed
  4.      */
  5.     public void delete(final String str) {
  6.         myLine.replace(str, null);
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement