answersLogoWhite

0

Can ragged arrays created by using java?

Updated: 8/21/2019
User Avatar

Wiki User

9y ago

Best Answer

I assume you mean that you have a number of rows, and that not all rows have the same number of "cells". Yes, in Java a two-dimensional array is implemented as an array of arrays (each item in the top-level array is, in itself, an array); a 3-dimensional array is an array of arrays of arrays, etc.; and there is no rule stating that all secondary (etc.) arrays must have the same number of elements.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can ragged arrays created by using java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is it possible to use arrays when using the java programming language?

It is possible to use arrays when employing java programming language. There are many different series of programming choice that can be employed with various end results.


How do you find the difference between two arrays in Java?

for arrays you can list the different arrays and what attributes that you give to them.


What are associative arrays in Java programming language?

Java does not support associative arrays. However, you can achieve the same thing using a map.


Where can one find advice about working with Java sorting arrays?

There are many places where one could find advice about working with Java sorting arrays. The best place to learn more about working with Java would be to contact Oracle.


What are the differences between structures and arrays?

Arrays are collections of repeated data items. Structures are complex data items made up of other data items, including, potentially, other structures and arrays. You can, of course, also have arrays of structures. Array items can be accessed by using its subscript whereas structure items can be accessed using its dot or "arrow" operator in C, C++, C#, Java, and JavaScript.


Which one is better than arrays in java?

Better for what? Arrays have their purposes, other constructs have other purposes. Depending on what you need, an array may be just what you need.


How can you prove the given string by user is array or not in java?

Strings and Arrays are two totally different data types in Java and they will not match with one another.


How arrays are created in java?

Arrays are created just like other variables in Java. Ex: int[] a; // declares an array of integers a = new int[10]; // allocates memory for 10 integers a[0] = 100; // initialize first element a[1] = 200; // initialize second element Arrays are homogenous data types and hence they can contain values of only one type. If you create an integer array it can hold only integer data type values. If you try to assign values to nonexistent locations like a[15] it will throw an index out of bounds exception.


What is the definition of array length in the Java programming language?

When programming in Java language, you will need to use container objects to hold your specific values and these are called Arrays. The amount of values held in these containers is called the Array Length. This is generated once an Array is created and the length becomes locked.


Why c and java arrays are start with zero and pascal arrays are start with one?

It's a difference in mentality; some believe 0 is the begin, and is thus the only logical choice, and some think the opposite.


When was San i java created?

San i java was created in 1999.


When was Belenois java created?

Belenois java was created in 1768.