943,544 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 482
  • Java RSS
Nov 15th, 2008
0

printing an element in an array

Expand Post »
i have a 2d array. i know the position. how can i print it out.

i just need to print out 1 single element not the entire array.
Similar Threads
Reputation Points: 7
Solved Threads: 0
Junior Poster
mrjoli021 is offline Offline
170 posts
since Mar 2007
Nov 15th, 2008
0

Re: printing an element in an array

Java Syntax (Toggle Plain Text)
  1. System.out.println(anArray[x][y]);
where x,y are selected integer indexes of the anArray.
quuba
Reputation Points: 123
Solved Threads: 106
Posting Pro
quuba is offline Offline
573 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Need help in code
Next Thread in Java Forum Timeline: chess game





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC