Skip to content

Build error #51

@gongzelong0718

Description

@gongzelong0718

Does anyone know how to fix the build error?

➜  algs4 git:(master) ✗ javac BinarySearch.java
BinarySearch.java:94: error: cannot find symbol
        In in = new In(args[0])
        ^
  symbol:   class In
  location: class BinarySearch
BinarySearch.java:94: error: cannot find symbol
        In in = new In(args[0]);
                    ^
  symbol:   class In
  location: class BinarySearch
BinarySearch.java:101: error: cannot find symbol
        while (!StdIn.isEmpty()) {
                ^
  symbol:   variable StdIn
  location: class BinarySearch
BinarySearch.java:102: error: cannot find symbol
            int key = StdIn.readInt();
                      ^
  symbol:   variable StdIn
  location: class BinarySearch
BinarySearch.java:104: error: cannot find symbol
                StdOut.println(key);
                ^
  symbol:   variable StdOut
  location: class BinarySearch
5 errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions