StringExtractor.pdf - Amber Price Extracts a particular string from a longer [email protected]@[email protected] public class StringExtractor Assignment 1 Using any

StringExtractor.pdf - Amber Price Extracts a particular...

This preview shows page 1 - 3 out of 3 pages.

Amber Price /** * Extracts a particular string from a longer one. * @author * @version * @date * */ public class StringExtractor { /* * Assignment: * 1. Using any of the string methods, write a sequence of commands that will extract * characters from final String inputString = "The quick brown fox jumps over the lazy dog." to make * outputString = "Tempus fugit.". Then print inputString and outputString. Be sure to add some * text so we know what has been done! * * Correct any style, runtime, or compiler errors in the starter code.
Image of page 1
System.out.print(inputString.substring(16,17)); // F System.out.print(inputString.substring(5,6)); // U
Image of page 2
Image of page 3

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture