/** provides methods to read a pair of strings and manipulate them
 *  in various ways.
 */
import java.io.*;
public class PairOfStrings {
  
  /** read two Strings from the keyboard and return
   *  the second String concatenated with the first String
   */
  public String joinReversed() throws IOException {
    String firstString= KeyboardReader.getString();
    return KeyboardReader.getString() + firstString;
  }

  /** read two Strings and return the average of their lengths,
   *  which will be of type double.
   */
  public double averageLength() throws IOException {
    double sum= KeyboardReader.getString().length() +
      KeyboardReader.getString().length();
    return sum/2;
  }

}



