Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayIndex in Arrays

 
C.R.Muthukumar
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic