Hello JavaProgrammers, None of the questions that were posed earlier could find solutions in java,that has now resulted me to get a tendancy to switch over to C++,though this is not an easy endeavour either.So as a final resort to get the real motivation for the continued grip for Java,let me get the correct procedure for array index being out of bounds especialy so for a very simple folowing code in Java.(ShortestPath.txt)
So should Or should not I say "Cheerio" for the "JAVA" Thanks C.R.Muthukumar
Ernest Friedman-Hill
author and iconoclast
Marshal
You haven't posted a question since May, so I'm not sure what other issues you're referring to, nor can I figure out what you're asking here. Do you have a question? If so, what is it?
Note that a statement like
System.out.println(" arr[j] ");
will print, on a line by itself, the characters "arr[i][j]". If you'd like to print the value of that array element surrounded by spaces, something like this would be appropriate:
System.out.print(" " + arr[i][j] + " ");
Note that [i]none of those import statements do anything here.