/**
 * @file TreeStory.java
 * @author Valery Samovich
 * @version 1
 * @date 2015/05/11
 */

package com.samovich.basics.concepts.strings.treehouse;

import java.io.Console;
import java.util.Scanner;

public class TreeStory {

    public static void main(String[] args) {

        // Console console = System.console();
        // __Name is a __adjective__ __noun__.
        // They are always __adverb__ __verb__.
        String name = console.readLine("Enter a name:  ");
        String adjective = console.readLine("Enter an adjective:  ");
        String noun = console.readLine("Enter a noun:  ");
        String adverb = console.readLine("Enter an adverb:  ");
        String verb = console.readLine("Enter a verb ending with -ing:  ");
        console.printf("Your TreeStory:\n----------------\n");
        console.printf("%s is a $s %s. ", name, adjective, noun);
        console.printf("They are always %s %s.\n", adverb, verb);

        Scanner scanner = new Scanner(System.in);
        System.out.println("Enter your name: ");
        String name = scanner.nextLine();
        System.out.println("Enter an adjective: ");
        String adjective = scanner.nextLine();
        System.out.println(name + " is very " + adjective + "!");

    }
}

@@ -271,55 +271,8 @@
  %7B%0A%0A
-        // Console console = System.console();%0A
     
@@ -284,16 +284,18 @@
 / __Name
+__
  is a __
@@ -360,24 +360,73 @@
 _ __verb__.%0A
+%0A//        Console console = System.console();%0A//
         Stri
@@ -464,32 +464,34 @@
 er a name:  %22);%0A
+//
         String a
@@ -540,24 +540,26 @@
 ctive:  %22);%0A
+//
         Stri
@@ -601,24 +601,26 @@
  noun:  %22);%0A
+//
         Stri
@@ -667,24 +667,26 @@
 dverb:  %22);%0A
+//
         Stri
@@ -745,24 +745,26 @@
  -ing:  %22);%0A
+//
         cons
@@ -810,24 +810,26 @@
 ------%5Cn%22);%0A
+//
         cons
@@ -878,24 +878,26 @@
 ive, noun);%0A
+//
         cons
@@ -1039,18 +1039,16 @@
 ter 
-your
+a
  name:
+ 
  %22);
@@ -1137,16 +1137,17 @@
 jective:
+ 
  %22);%0A   
@@ -1221,47 +1221,450 @@
 tln(
-name + %22 is very %22 + adjective + %22!%22);%0A
+%22Enter a noun: %22);%0A        String noun = scanner.nextLine();%0A        System.out.println(%22Enter an adverb: %22);%0A        String adverb = scanner.nextLine();%0A        System.out.println(%22Enter a verb ending with -ing:  %22);%0A        String verb = scanner.nextLine();%0A        // Print the prototype%0A        System.out.println(name + %22 is a %22 + adjective + %22 %22 + noun + %22.%22);%0A        System.out.println(%22They are always %22 + adverb + %22 %22 + verb + %22.%22);
 %0A   

Update Multiple Strings Example for Console and Scanner prototype