compile error: cannot find symbol: In, StdIn and StdOut

前端 未结 6 1091
隐瞒了意图╮
隐瞒了意图╮ 2020-12-16 13:35

The code is from http://algs4.cs.princeton.edu/11model/BinarySearch.java.html for Algorithms textbook.

import java.         


        
6条回答
  •  醉酒成梦
    2020-12-16 14:19

    StdIn and In are custom Libraries that are included within the algs4 class download. Execute the program with the command java-algs4 instead of just java and it should work.

提交回复
热议问题