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!

print out an array in a special format?

Status
Not open for further replies.

wangdong

Programmer
Oct 28, 2004
202
CN
I have a two dimension integer array:

int number[][] = {{1,2,3},{4,5,6},{7,8,9}};

Now, I want to print out in this format:

1 2 3
8 9 4
7 6 5

Has anyone got any idea on how to do it?

Chinese Java Faq Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top