title: How to print only specific parts of a string in java?
body: <p>I am writing a program that writes a letter using specific parts of a string.</p>
  
  <p>Here is what I have so far (I am only a beginner)</p>
  
  <pre><code>import java.util.Scanner;
  
  public class AutoInsurance {
  
      public static void main (String[] args)
      {
          Scanner scan=new Scanner (System.in);
          System.out.print("Enter Name:");
          String Name;
          Name=scan.nextLine();
          System.out.print("Enter Street Address:");
          String Address;
          Address=scan.nextLine();
          System.out.print("Enter city, state, and zip code:");
          String Location;
          Location=scan.nextLine();
          System.out.println();
          System.out.println();
          System.out.println("Dear "+Name+",");
          System.out.println(" You have been selected to receive this offer of auto insurance from");
          System.out.println("Allspam Insurance Company! Drivers from "++" saved an average "); // I just want it to print the city here, between ++
  
          // I will finish coding once I figure this out, but I'm stumped
      }
  }
  </code></pre>