Re: [mooc.fi] import java.util.Scanner; - Unused import ??

104 views
Skip to first unread message

Jarmo Isotalo

unread,
Nov 8, 2014, 10:43:54 AM11/8/14
to olga.m...@aalto.fi, moo...@googlegroups.com
You haven't declared variable reader. Thus the Cannot find symbol from word reader.

And what comes for the Unused import java.util.Scanner;  you don't have any variables which type is Scanner, thus the import is unused.

So here you are missing the declaration / initialization of the variable reader. Something like this.
Scanner reader = ... ;



On Sat, Nov 8, 2014 at 2:27 PM, <olga.m...@aalto.fi> wrote:

Hi,

The first line import.java.util.Scanner; is not working for me in exercise 36. The helper just says its a "Unused import". Due to this the program can't for example find the reader part for    int number = Integer.parseInt(reader.nextLine()); . It just says "Cannot find a symbol".

Anyone had same kind of problems? It works for me in all the other exercises so I can't figure out why is it this way in that one?



--
http://mooc.fi
---
You received this message because you are subscribed to the Google Groups "mooc.fi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moocfi+un...@googlegroups.com.
To post to this group, send email to moo...@googlegroups.com.
Visit this group at http://groups.google.com/group/moocfi.
To view this discussion on the web visit https://groups.google.com/d/msgid/moocfi/d483e44f-3b80-488f-96f8-e75fe4ff260f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages