title: Write code to take a String input from the user, then print all except the first and last letters of the string on one line
body: <p>Enter a string:
  glazed
  laze</p>
  <pre><code> Scanner scan = new Scanner(System.in);
     String s;
     String w;
     System.out.println(&quot;Enter a string :&quot;);
     s = scan.nextLine();
     w = (s.substring(1,5));
     System.out.print(w);
  </code></pre>
  <p>Make sure you remember how string charcters are indexed, and which characters are included when using the substring method.</p>