• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to write a function to demostrate functionality of 3d in 1d. function prototye:  RSS feed

 
Pulkit verma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
write a function to give demostrate the functionality of 3d in 1d. function prototye:
change(int value,int indexX,int indexY,int indexZ, int [] 1dArray);
value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored.

please please help me out...........i would be really really thankful to you...........how to demostrate 3d array in 1d array
 
Campbell Ritchie
Marshal
Posts: 55760
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

We do not simply give out that sort of answer, but we expect you do do the work, then show us what you have, and we shall tell you what we think of it.

By the way: There is no such thing as a 3-D array in Java, only 1-D arrays. What you think is a 2-D array is actually a 1-D array of 1-D arrays.

Please check the question you have been given carefully. The code you have posted doesn't look like valid Java. And "function prototype" is a phrase never used in Java syntax. You do however say "function prototype" in C, and that code looks rather like C to me, unless it is supposed to be part of an interface.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!