Lab04c - out.println(demo.ripString(9,12));

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

View Full Document Right Arrow Icon
//© A+ Computer Science - www.apluscompsci.com //Name - //Date - //Lab - import static java.lang.System.*; public class Lab04c { public static void main ( String[] args ) { StringRipper demo = new StringRipper("chicken"); out.println(demo.ripString(3,6)); out.println(demo); demo.setString("alligator"); out.println(demo.ripString(3,8)); out.println(demo); demo.setString("COMPUTER SCIENCE IS THE BEST!");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: out.println(demo.ripString(9,12)); out.println(demo.ripString(0,12)); out.println(demo.ripString(5,20)); out.println(demo); demo.setString("I like fried chicken and mashed potatoes!"); out.println(demo.ripString(0,7)); out.println(demo.ripString(7,15)); out.println(demo.ripString(15,26)); out.println(demo.ripString(22,26)); out.println(demo); } }...
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