My code is giving error. Can you please guide me how to correct it. It would be better if can give corrected version of this code.
IDE : https://ide.codingblocks.com/s/212409
Dijkstra's Algorithm : Code
It is giving some syntax error, first resolve them.
This may also giving because the ide doesnt suport javafx package for pair class.
My code is giving “No such Element Exception” when I am trying to take input from user. However it works fine if we randomly make the graph. Kindly check. IDE : https://ide.codingblocks.com/s/215504
@aman_ishan That problem is because of the bufferedReader input. There may be chances that br.readLine is null and you are trying to call split(" ") on null.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.