Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7073231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:54:17+00:00 2026-05-28T05:54:17+00:00

I am trying to run the Tarjan java implementation from wikipedia . My final

  • 0

I am trying to run the Tarjan java implementation from wikipedia. My final goal is to inject a few println at specifc points, this will allow me to understand further the code.

What have I done so far

  • I copy pasted these 3 source codes

a)Tarjan source code b)Edge source code c)Node source code
j
in 3 separate files under in the same folder.

  • I was able to run a helloworld example (unfortunatley my java background is almost zero, last time I coded java was for homework, years agao).

What is the concrete problem I am facing
I get 3 erros:

Tarjan.java:9: error: cannot find symbol
  public ArrayList<ArrayList<Node>> executeTarjan(AdjacencyList graph){
                                                  ^
  symbol:   class AdjacencyList
  location: class Tarjan
Tarjan.java:28: error: cannot find symbol
   private ArrayList<ArrayList<Node>> tarjan(Node v, AdjacencyList list){
                                                     ^
  symbol:   class AdjacencyList
  location: class Tarjan
Tarjan.java:14: error: cannot find symbol
          List<Node> nodeList = new ArrayList<Node>(graph.getSourceNodeSet());
          ^
  symbol:   class List
  location: class Tarjan
3 errors

The corresponding lines: 9, 28, 14 are these

//line 9
 public ArrayList<ArrayList<Node>> executeTarjan(AdjacencyList graph){
 //line 28
List<Node> nodeList = new ArrayList<Node>(graph.getSourceNodeSet());
//line 14
private ArrayList<ArrayList<Node>> tarjan(Node v, AdjacencyList list){

Additional explanation
I did not put as title the kind of error I get because I don’t know if this is an actual error or something else I am doing wrong, maybe I have to include the files (like in php..don’t know). I am posting this in the hope that making it run is something simple since the code is there already.

Thank you all in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:54:17+00:00Added an answer on May 28, 2026 at 5:54 am

    Most likely your missing some imports:

    import java.util.List;
    

    Also, you need to obtain the sourcecode for AdjacencyList from here
    That should fix your problems with compilation, might run into others later on 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying run a batch file from my java codes, but unfortunately I
I am trying run a program from a qmake .pro file which modifies the
I'm trying to run a batch file, as another user, from my web app.
Trying to run a simple svn list svn+ssh://... from within jenkins on os X,
Im trying to run this code . Basically I want the https://admin:qwerty123@ '$dmp':7777/set_param?'$params command
When trying to run android application from eclipse console shows [2012-01-31 14:01:01 - Remix_6Dec11]
When trying to run my application on the emulator I get an error from
I wrote this C program for Win32/c compiler but while i'm trying run this
Im trying to run a script for a project, the goal is simple :
When trying to run my project I get this error and I don´t know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.