Error with eclipse: The local variable may not have been initialized : <p>So I made some simple code in Java:</p>

<p>import java.util.Scanner;</p>

<pre><code>public class Book {
    public static void main(String[] args) {

        String title;
        String author;
        String pages;
        Scanner scan;
        String input = scan.nextLine();

        // Book #1
        // =1=

        Book anothermedium = new Book();


}}
</code></pre>

<p>On line 10 I get the error:</p>

<pre><code>The local variable scan may not have been initialized
</code></pre>

<p>Any way to fix this?</p>
