Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C PROGRAMMER QUICK JAVA ARRAY QUESTION

Status
Not open for further replies.

phillywifey60

Programmer
Nov 26, 2004
2
US
I need to print the contents of a multidimensional array: line by line, left to right.
PLEASE HELP QUICKLY!!!

I have a multidimensional array whose number of rows and colums is indicated in the declaration of the array:
String PatientArray [][]= new String [20][4];

I have another class that fills in the contents of this array and I need to write a class that prints out the contents of this array. I just need simple pseudocode because I am a C++ programmer and am not fully sure of Java's capabilities.
 
Primitive data type arrays in Java are the same as in C - so basically, you do it the same as you would in C. In Java you know the length of an array - which is determined by arrayName.length .

--------------------------------------------------
Free Database Connection Pooling Software
 
im doing a java program in which i have to thread a banner across the screen of a html file when executing
 
Well done. I hope it is going well.
I'm writing a multithreaded imaging server in C at the moment.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top