How do I import jars into my java program?

前端 未结 13 1593
自闭症患者
自闭症患者 2021-01-04 12:52

I\'ve downloaded two jars. I want to import some of their contained classes. How do I do this?

It\'s for my algorithms class. I\'ve tried following the instructions

13条回答
  •  情深已故
    2021-01-04 13:55

    Is your Percolation program contained in its own package? If so try putting it into the default package by commenting out any package statements from your files and recompiling it. Also, nothing in algs4 is in the java package, it's all it's own separate thing.

提交回复
热议问题