/*********************** * Author: G. Towell * Created: August 28, 2019 * Modified: August 29, 2019 * Purpose: * Strings ! ***********************/ public class Stringer { public static void main(String[] args) { String geoffrey = "Geoffrey"; System.out.println(geoffrey); String geoff = geoffrey.substring(0, 5); System.out.print(geoff + "\n"); String c = geoffrey.concat(geoff); System.out.println("|"+geoffrey+"|"+geoff+"|"+c+"|"); String d = geoffrey + geoff; System.out.println("|"+geoffrey+"|"+geoff+"|"+d+"|"); } }