How to use libraries for Algorithms part I Coursera course in Eclipse

前端 未结 10 942
挽巷
挽巷 2020-12-23 12:44

I\'ve started Coursera Algorythms course. Practice assignments must be done on Java and they suggest using DrJava as IDE, but it\'s really unconvenient. So I\'d like to use

10条回答
  •  [愿得一人]
    2020-12-23 13:08

    Incase of Gradle, add the maven repository entry in repositories section of build.gradle as follows:

    repositories {
        mavenCentral()
        maven {
            url 'https://dl.bintray.com/algs4/maven/'
        }
    }
    

    Add the dependency as follows:

    compile group: 'edu.princeton.cs', name: 'algs4', version: '1.0.4'
    

    In case of Maven, add the entry in repositories tag in build.xml, as follows:

    
      
        org.coursera.algs4
        Algs4 lib
        https://dl.bintray.com/algs4/maven/
      
    
    

    Add the dependency as follows:

    
      
        edu.princeton.cs
        algs4
        1.0.4
      
    
    

提交回复
热议问题