/**
 * @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();
        // String name = console.readLine("Enter your name: ");
        // String adjective = console.readLine("Enter an adjective: ");
        // console.printf("%s is very %s", name, adjective);

        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 + "!");

        // __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);
        conosle.printf("They are always")
    }
}

@@ -318,513 +318,8 @@
 ();%0A
-        // String name = console.readLine(%22Enter your name: %22);%0A        // String adjective = console.readLine(%22Enter an adjective: %22);%0A        // console.printf(%22%25s is very %25s%22, name, adjective);%0A%0A        Scanner scanner = new Scanner(System.in);%0A        System.out.println(%22Enter your name: %22);%0A        String name = scanner.nextLine();%0A        System.out.println(%22Enter an adjective: %22);%0A        String adjective = scanner.nextLine();%0A        System.out.println(name + %22 is very %22 + adjective + %22!%22);%0A%0A
     
@@ -837,16 +837,18 @@
  a $s %25s
+. 
 %22, name,
@@ -881,10 +881,10 @@
  con
-o
 s
+o
 le.p
@@ -905,18 +905,350 @@
 e always
-%22)
+ %25s %25s.%5Cn%22, adverb, verb);%0A%0A        Scanner scanner = new Scanner(System.in);%0A        System.out.println(%22Enter your name: %22);%0A        String name = scanner.nextLine();%0A        System.out.println(%22Enter an adjective: %22);%0A        String adjective = scanner.nextLine();%0A        System.out.println(name + %22 is very %22 + adjective + %22!%22);%0A
 %0A    %7D%0A%7D

Update Multiple Strings Example for Console and Scanner prototype