how to display the first row of a 2 dimensional array

Put your problem here if it does not fit any of the other categories.

how to display the first row of a 2 dimensional array

Postby arvishreef » Tue Jun 30, 2009 10:12 am

Hello guys,

I have an array of 2-dimensions. i have a button and a textfield.
When, for example, i enter "A" in the text field and press the button, i want to display
only the values of the first row of the array. Does anyone have any ideas how to do it.
Let me know, if you have any idea.

Below is the array.




Thanks in advance,
Arvish.


private static final String[][] textes = new String[2][50];
{



mfetes[0][0] = "A";
mfetes[0][1] = "test 1";
mfetes[0][2] = "test2 ";


mfetes[1][0] = "B";
mfetes[1][1] = "hello 1";
mfetes[1][2] = "hello 2";
mfetes[1][3] = "hello 3";
}
arvishreef
Freshman
Freshman
 
Posts: 9
Joined: Mon May 04, 2009 6:18 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Google Feedfetcher and 13 guests