This week's book giveaway is in the Python forum.We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
• Campbell Ritchie
• Liutauras Vilda
• Bear Bibeault
• Paul Clapham
• Jeanne Boyarsky
Sheriffs:
• Devaka Cooray
• Junilu Lacar
• Tim Cooke
Saloon Keepers:
• Tim Moores
• Ron McLeod
• Tim Holloway
• Claude Moore
• Stephan van Hulst
Bartenders:
• Winston Gutkowski
• Carey Brown
• Frits Walraven

# Multi dimensional array

Greenhorn
Posts: 7
In the real world , where can we use Multi dimensional array

Greenhorn
Posts: 28
They can be used to store matrix, for example to represent a maze, or a chessboard, but also in lot of mathematical application, to solve linear sytems,...

Marshal
Posts: 63409
205
Welcome to the Ranch

There ain't no such thing as a multidimensional array in Java®; what appears to be a multidimensional array is actually an array of arrays.
Think of something which is written out to fill a rectangular grid. If you have anything which fills a grid, then it might be expressed in an array of arrays where one level of nesting represents rows and the other columns.

narayan lakshmis
Greenhorn
Posts: 7
can i have a numeric value and alphabet value in a multidemnsion array .for example like x[1][1]={1a}

Marshal
Posts: 6588
443

narayan lakshmis wrote:can i have a numeric value and alphabet value in a multidemnsion array .for example like x[1][1]={1a}

You supposed to take points which have been mentioned already. That's one. Second - no. However, you may have an object inside which may hold what you want.

Liutauras Vilda
Marshal
Posts: 6588
443
But if you want to get more precise help, you'd need to help others understand what you are seeking in general. Or at least be more elaborating in your posts.

And welcome to the Ranch

Campbell Ritchie
Marshal
Posts: 63409
205
That is a String. It is usually a bad idea to use Strings if a different type can be created, but you can create a String[][] to hold such data, yes.

narayan lakshmis
Greenhorn
Posts: 7
ya thanks

 We begin by testing your absorbancy by exposing you to this tiny ad: Become a Java guru with IntelliJ IDEA https://www.jetbrains.com/idea/