Scanner problems. Split problems. Can't find symbol - java
<p>This is what I got returned and I cannot figure out what error: cannot find symbol</p>

<pre><code>    C:\Users\testuser\Desktop\TestFile.java:33: error: cannot find symbol
                            Scanner sc = new Scanner(System.in);
                            ^
      symbol:   class Scanner
      location: class TestFile
    C:\Users\testuser\Desktop\TestFile.java:33: error: cannot find symbol
                            Scanner sc = new Scanner(System.in);
                                             ^
      symbol:   class Scanner
      location: class TestFile
    C:\Users\testuser\Desktop\TestFile.java:44: error: cannot find symbol
                            String[] tabs = prep.Split(" ");
                                                ^
      symbol:   method Split(String)
      location: variable prep of type String
    3 errors
</code></pre>

<p>This is my code.</p>

<pre><code>public class TestFile {

    String[] preps = {
        "about", "above", "across", "after", "against",
        "along", "among", "around", "at", "before",
        "behind", "below", "beneath", "beside", "between",
        "by", "concerning", "down", "during", "except",
        "for", "from", "in", "inside", "into",
        "like", "near", "of", "onto", "out",
        "over", "through", "to", "toward", "under",
        "up", "upon", "with", "within", "without"
    };

    String[] errorpreps = {
        "will", "would", "shall", "should", "can",
        "could", "may", "might", "must", 
    };

    String[] question = {
    };


    public static void main(String[] args) {

        TestFile f = new TestFile();

        f.generatecode("hi");

    };

    public String generatecode(String code){

        Scanner sc = new Scanner(System.in);
        String inp = sc.nextString();

        String prep = "";

        for (int i=0; i&lt;preps.length+1; i++){ //retuns all inputed things into prep

            prep = preps + preps[i] + " ";

        }

        String[] tabs = prep.Split(" "); //splits the inputed thing and puts it into tab

        for (int f=1; f&lt;tabs.length+1; f++){
            String prox = tabs[f];

            if(prox.contains(".")){
                prep = "Found a .!";
            } else if(prox.contains("?")){
                prep = "Found a ?!";
            } else if(prox.contains("!")){
                prep = "Found a !!";
            } else if(prox.contains(",")){
                prep = "Found a ,!";
            }
        }

        return prep;

    }

    public String printcode(String code){


        return "";

    }

}
</code></pre>

<p>Now the thing is I do not know much about Scanner. I didn't import anything. I know some about the split method. I cannot figure out why my syntax is not right. I believe it's correct syntax going off of other examples.</p>

<p>Thanks in advance.</p>
