File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Array initialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Array initialization

Rizwan Qadri
Ranch Hand

Joined: May 28, 2007
Posts: 40
Hi, all,

How can we initialize or use this array.

class ArrayTest
public static void main(String[] args)
int[][] values =new int[2][];

Output- null
I cant understand.
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

Please don't post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Array initialization
It's not a secret anymore!