StringRipper - { setString(s); } public void...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//© A+ Computer Science - //Name - //Date - //Lab - import static java.lang.System.*; public class StringRipper { private String word; public StringRipper() { setString(""); word=""; } public StringRipper(String s)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { setString(s); } public void setString(String s) { word=s; } public String ripString(int x, int y) { return word.substring(x,y); } public String toString() { return word+"\n\n"; } }...
View Full Document

This note was uploaded on 11/11/2011 for the course C++ comp122 taught by Professor N/a during the Spring '07 term at Cy-Fair College.

Ask a homework question - tutors are online