Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WordClient1
- {
- public static void main( String[] args )
- {
- Word aWord;
- aWord = new Word("hello");
- System.out.println("aWord has:");
- System.out.println(aWord.toString());
- aWord.findInLine("Hello World!", 1);
- aWord.findInLine("hello world!", 2);
- System.out.println(aWord.findInLine("Once upon a midnight dreary", 3));
- aWord.findInLine("He then said 'hello, how are you?", 4);
- aWord.findInLine("He then said 'hello, how are you?", 5);
- aWord.findInLine("He then said 'hello, how are you?", 6);
- aWord.findInLine("He then said 'hello, how are you?", 7);
- System.out.println(aWord.findInLine("He then said 'hello, how are you?", 8));
- aWord.findInLine("He then said 'hello, how are you?", 9);
- aWord.findInLine("He then said 'hello, how are you?", 10);
- aWord.findInLine("He then said 'hello, how are you?", 11);
- aWord.findInLine("He then said 'hello, how are you?", 12);
- aWord.findInLine("He then said 'hello, how are you?", 13);
- aWord.findInLine("He then said 'hello, how are you?", 14);
- aWord.findInLine("He then said 'hello, how are you?", 15);
- System.out.println("aWord has:");
- System.out.println(aWord.toString());
- } // end of method main
- } // end of class WordClient1
Add Comment
Please, Sign In to add comment