Lab04e - out.println("looking for all

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 Lab04e { public static void main ( String[] args ) { StringChecker demo = new StringChecker("chicken"); out.println("looking for c "+demo.findLetter('c')); out.println("looking for ch "+demo.findSubString("ch")); out.println("looking for x "+demo.findSubString("x")); out.println(demo); demo.setString("alligator"); out.println("looking for g "+demo.findLetter('g'));
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("looking for all "+demo.findSubString("all")); out.println("looking for gater "+demo.findSubString("gater")); out.println(demo); demo.setString("COMPUTER SCIENCE IS THE BEST!"); out.println("looking for U "+demo.findLetter('U')); out.println("looking for COMP SCI "+demo.findSubString("COMP SCI")); out.println("looking for SCIENCE "+demo.findSubString("SCIENCE")); 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